Skip to content

Commit ad5fff2

Browse files
authored
docs: Add documentation for row and column operations tools (#80)
1 parent 89302b8 commit ad5fff2

File tree

1 file changed

+78
-0
lines changed

1 file changed

+78
-0
lines changed

TOOLS.md

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,3 +393,81 @@ get_data_validation_info(filepath: str, sheet_name: str) -> str
393393
- Prompt and error messages
394394

395395
**Note**: The `read_data_from_excel` tool automatically includes validation metadata for individual cells when available.
396+
397+
## Row and Column Operations
398+
399+
### insert_rows
400+
401+
Insert one or more rows starting at the specified row.
402+
403+
```python
404+
insert_rows(
405+
filepath: str,
406+
sheet_name: str,
407+
start_row: int,
408+
count: int = 1
409+
) -> str
410+
```
411+
412+
- `filepath`: Path to Excel file
413+
- `sheet_name`: Target worksheet name
414+
- `start_row`: Row number where to start inserting (1-based)
415+
- `count`: Number of rows to insert (default: 1)
416+
- Returns: Success message
417+
418+
### insert_columns
419+
420+
Insert one or more columns starting at the specified column.
421+
422+
```python
423+
insert_columns(
424+
filepath: str,
425+
sheet_name: str,
426+
start_col: int,
427+
count: int = 1
428+
) -> str
429+
```
430+
431+
- `filepath`: Path to Excel file
432+
- `sheet_name`: Target worksheet name
433+
- `start_col`: Column number where to start inserting (1-based)
434+
- `count`: Number of columns to insert (default: 1)
435+
- Returns: Success message
436+
437+
### delete_sheet_rows
438+
439+
Delete one or more rows starting at the specified row.
440+
441+
```python
442+
delete_sheet_rows(
443+
filepath: str,
444+
sheet_name: str,
445+
start_row: int,
446+
count: int = 1
447+
) -> str
448+
```
449+
450+
- `filepath`: Path to Excel file
451+
- `sheet_name`: Target worksheet name
452+
- `start_row`: Row number where to start deleting (1-based)
453+
- `count`: Number of rows to delete (default: 1)
454+
- Returns: Success message
455+
456+
### delete_sheet_columns
457+
458+
Delete one or more columns starting at the specified column.
459+
460+
```python
461+
delete_sheet_columns(
462+
filepath: str,
463+
sheet_name: str,
464+
start_col: int,
465+
count: int = 1
466+
) -> str
467+
```
468+
469+
- `filepath`: Path to Excel file
470+
- `sheet_name`: Target worksheet name
471+
- `start_col`: Column number where to start deleting (1-based)
472+
- `count`: Number of columns to delete (default: 1)
473+
- Returns: Success message

0 commit comments

Comments
 (0)