word_analyze
Analyze Word document structure to locate paragraphs and cells for precise text replacement. Returns an index to target replacements accurately.
Instructions
Analyze a Word document structure. Returns text index for word_replace.
Addressing scheme for replacements: p:{i} → body paragraph c:{t}:{r}:{c} → entire cell (auto line-map, use \n for multi-line) c:{t}:{r}:{c}:{p} → specific paragraph inside a cell
Optional format hints (in fmt_hints param): "_fmt:p:{i}" → {"runs": [{"text": "中一", "underline": true}]}
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>"
},
"name": "word_analyze"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||