search_code
Search source code text across all files in a project using plain text or regex patterns. Retrieve matching results with an adjustable limit.
Instructions
Search source code text across all files in the project (grep-like).
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": {
"project_id": "<project_id>",
"query": "<query>"
},
"name": "search_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum results (default 30) | |
| query | Yes | Text to search for. Wrap in /.../ for regex. | |
| project_id | Yes | Project ID |