word_delete_paragraph
Remove a specific paragraph from a Word document by its index. Specify the file path and paragraph position to delete unwanted content while optionally keeping a backup.
Instructions
Delete a specific paragraph from a Word document by its 0-based index.
Args:
file_path: Path to the Word document (.docx).
paragraph_idx: 0-based index of the paragraph to delete.
backup: If True, create a backup of the original file before modifying.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"file_path": "<file_path>",
"paragraph_idx": "<paragraph_idx>"
},
"name": "word_delete_paragraph"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| backup | No | ||
| file_path | Yes | ||
| paragraph_idx | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |