propose_replace_text
Stage a text replacement within a specific document block range, with preview before applying. Excludes table cells for safe, precise edits in Markdown and Word documents.
Instructions
Stage replacing character range [start:end) inside one block.
Offsets come from find_text or read_document. The staged change includes before/after previews; nothing is written until apply_changes. Table cells are not supported (delete/re-insert the table instead).
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": {
"path": "<path>",
"element_id": "<element_id>",
"start": "<start>",
"end": "<end>",
"text": "<text>"
},
"name": "propose_replace_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | Yes | ||
| path | Yes | ||
| text | Yes | ||
| start | Yes | ||
| doc_hash | No | ||
| element_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||