Search code
search_codeSearch the sandbox repository for text (literal by default, or regex) and return matching file, line number and line text. Respects .gitignore, skips .env files. Use to find where copy, components or styles live. Read-only.
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>",
"query": "<query>"
},
"name": "search_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| glob | No | Only search files matching this glob, e.g. "*.tsx". | |
| path | No | Restrict the search to this directory or file (repo-relative). | |
| query | Yes | Text to find. Literal by default; set regex:true for a regular expression. | |
| regex | No | true to treat query as a regular expression (default false: literal text). | |
| context | No | A few words on why you are calling this tool, for the server developer's analytics. Describe people and things by role, such as "a customer". Do not quote the user or include names, emails, or other personal details. | |
| llm_model | No | The model identifier you are running as, for example "claude-opus-4-8" or "gpt-5.2". Pass "unknown" if you are not certain. Recorded for the server developer's analytics. | |
| sessionId | Yes | The ronda session id, from open_session or list_sessions. | |
| maxResults | No | Default 50. | |
| caseSensitive | No | Default false. |