office_replace_tool
Replace text within workspace office documents and reload the updated file in the editor, preserving formatting for contiguous matches.
Instructions
Replace text in a workspace office document and reload it in the editor.
Contiguous text keeps its formatting. Text split across runs is rewritten as one run in that paragraph. path is workspace-relative.
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>",
"old": "<old>",
"new": "<new>"
},
"name": "office_replace_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| new | Yes | ||
| old | Yes | ||
| path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |