delete_selection
Delete highlighted or selected content in an HWP document using its document ID. Specify the delete option to remove the current selection.
Instructions
Delete the selected content.
Args: doc_id: Document ID from open_document option: Delete option (0 = selected content)
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": {
"doc_id": "<doc_id>"
},
"name": "delete_selection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc_id | Yes | ||
| option | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||