Start a search
fs_search_startUse this when the user wants file names or text found in a large approved folder, beyond fs_search's limits (300 files). It walks the whole folder within timeoutMs and streams the results; a short search returns them with its summary, a long one returns its running IDs in about two seconds. Read every result (one JSON line each, the summary last) with operation_output (stream stdout, offset 0, then nextOffset) and stop it with operation_cancel. Read-only. Needs the sessionId from execution_session_open and a new operationId; each call is metered as one execution. A short result is returned inline within about two seconds; otherwise keep the returned IDs for operation_status and operation_output and do not resend the call.
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": {
"sessionId": "<sessionId>",
"operationId": "<operationId>",
"query": "<query>"
},
"name": "fs_search_start"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | content (default): lines in files; files: file and folder names | content |
| path | No | Path relative to the selected project root (or the workspace root without a project target); omit for the root. | |
| query | Yes | Text to find, or a regular expression when regex is true | |
| regex | No | Treat query as a JavaScript regular expression (default false); each file gets 2 seconds | |
| sessionId | Yes | executionSessionId returned by execution_session_open | |
| timeoutMs | No | Stop after this long, 1000-600000 ms (default 60000) | |
| deadlineAt | No | Optional UTC admission deadline at most 60 seconds ahead (queue start timeout, NOT process execution lifetime) | |
| maxResults | No | Stop after this many results, 1-50000 (default 1000) | |
| filePattern | No | Only files whose name matches, for example *.ts or *.cs|*.csproj (optional) | |
| operationId | Yes | A new random UUID v4 for this call; reuse it only to retry this same call | |
| contextLines | No | Lines before and after each match, 0-5 (default 0) | |
| caseSensitive | No | Match letter case (default false) | |
| includeHidden | No | Also search names starting with a dot (default false) | |
| idempotencyKey | No | Optional retry key, 8-128 chars of [A-Za-z0-9._:-]; defaults to operationId | |
| skipDirectories | No | Folder names never entered (default .git, node_modules, .local-commander, .local-release, .next, coverage) | |
| efficiencyProfile | No | Optional, unverified label of the client's model, recorded as display metadata in the device owner's local activity statistics. Omit when unknown. Never send credentials or conversation content. |