code-search
Search project files using plain text or regex, excluding node_modules and .git, to quickly find the exact code you need.
Instructions
Performs regex or text searches over project files, excluding node_modules and .git.
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": {
"query": "<query>"
},
"name": "code-search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Search string or regex pattern. | |
| regex | No | Treat query as JavaScript regular expression. | |
| maxResults | No | Maximum number of matches to return (default 50, max 200). | |
| pathFilter | No | Optional substring filter applied to file paths. | |
| caseSensitive | No | Perform case-sensitive search when true. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| regex | Yes | ||
| results | Yes | ||
| truncated | Yes | ||
| caseSensitive | Yes |