search_content
Search local text, source code, and Office, PDF, or OFD documents for keywords and return bounded UTF-8 snippets to locate relevant content.
Instructions
Search inside local text, source code, and Office/PDF/OFD documents with bounded UTF-8 snippets.
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_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum matched files to return (1-100, default 20). | |
| query | Yes | Text or keywords to search inside file contents. | |
| scope | No | Recommended directory scope to speed up content scanning. | |
| extensions | No | Optional file extensions filter (e.g. ['md', 'ts', 'docx', 'pdf']). | |
| case_sensitive | No | Enable case-sensitive content matching (default false). | |
| max_snippet_chars | No | Maximum characters per matched line snippet (40-1200, default 240). |