search_text
Find specific text within an HWP document and get the number of matches. Accepts document ID, search query, and case sensitivity option.
Instructions
Search for text in the document.
Args: doc_id: Document ID from open_document query: Text to search for case_sensitive: Whether the search is case sensitive
Returns: Number of matches found
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": {
"doc_id": "<doc_id>",
"query": "<query>"
},
"name": "search_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| doc_id | Yes | ||
| case_sensitive | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||