Edit block
edit_blockReplace exact text, modify DOCX XML, or update Excel ranges in files to apply precise content changes during AI-assisted development.
Instructions
Perform exact text replacement, DOCX XML replacement, or Excel range update.
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>"
},
"name": "edit_block"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| range | No | ||
| content | No | ||
| deviceId | No | ||
| file_path | Yes | ||
| deviceName | No | ||
| new_string | No | ||
| old_string | No | ||
| expected_replacements | No |