Search files
fs_searchUse this when the user wants to find text in the files of an approved project. Returns matching files and lines. 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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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 search for | |
| sessionId | Yes | executionSessionId returned by execution_session_open | |
| deadlineAt | No | Optional UTC admission deadline at most 60 seconds ahead (queue start timeout, NOT process execution lifetime) | |
| maxResults | No | Maximum matches returned, 1-300 (default 100) | |
| operationId | Yes | A new random UUID v4 for this call; reuse it only to retry this same call | |
| caseSensitive | No | Match letter case (default false) | |
| idempotencyKey | No | Optional retry key, 8-128 chars of [A-Za-z0-9._:-]; defaults to operationId | |
| 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. |