search_text
Search for text across the document body, footnotes, and comments, with optional regex support. Returns matching paragraphs with context.
Instructions
Search for text across the document body, footnotes, and comments.
Args: query: Text to search for (case-insensitive), or a regex pattern. regex: If true, treat query as a Python regular expression.
Returns matching paragraphs with their paraId, source part, and context.
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": {
"query": "<query>"
},
"name": "search_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| regex | No | ||
| document_handle | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |