start_search
Run a background search across file names or file contents, returning initial matches within a timeout; page results for large trees or stop the search early.
Instructions
Start a background search and return the first results within timeout_ms (default 3000). search_type=files matches names (substring or glob like *.py); search_type=content searches inside files (regex, or literal=true). Use for big trees: page with get_more_search_results, end early with stop_search.
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": "start_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| literal | No | ||
| pattern | Yes | ||
| timeout_ms | No | Milliseconds to wait for output. | |
| ignore_case | No | ||
| max_results | No | ||
| search_type | No | ||
| file_pattern | No | ||
| context_lines | No | ||
| include_hidden | No |