find_docx_term
Search a DOCX file's accepted text using a regular expression to locate matches, returning context and tracked-change status for each hit.
Instructions
Search the accepted text of a DOCX for a regular expression.
pattern is a Python regex. flags is a comma-separated list of re flag names, such as "IGNORECASE,DOTALL". Returns a list of {para_index, match, context, has_tracked_change}.
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>",
"pattern": "<pattern>"
},
"name": "find_docx_term"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| flags | No | IGNORECASE | |
| limit | No | ||
| pattern | Yes | ||
| context_chars | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |