search_file_contents
Find files by matching text inside them across PDF, Office, and plain text formats. Returns a snippet around the first match and its PDF page for quick verification.
Instructions
Search files by the text inside them (PDF, Word/Excel/PowerPoint, OpenDocument, plain text and code). Matches a literal substring, case-insensitive; returns a snippet around the first match and its PDF page. Scanned images are not searchable.
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_file_contents"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | words or a phrase that appears in the file content; at least two CJK characters or three letters | |
| cursor | No | next_cursor from the previous page |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | ||
| next_cursor | No |