search
Find where string literals or constants are used and defined across a project. Locate error messages, keys, or constant references by substring; use find_callers for function call sites.
Instructions
Where a string literal (error message, key) or a constant is used/defined (substring match). Example: {"kind": "strings", "pattern": "Order not found"} or {"kind": "constants", "pattern": "STATUS_ACTIVE"}. For calls of a function use find_callers.
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": {
"kind": "<kind>",
"pattern": "<pattern>"
},
"name": "search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| full | No | Disable the 400-line output cap. | |
| kind | Yes | strings: string literals (messages, keys); constants: constant references and definitions. | |
| path | No | Search scope relative to the project root; default: the whole root. | |
| layer | No | Only files of this layer, e.g. `service`. | |
| pattern | Yes | Text to look for (substring). | |
| project | No | Registered project alias; default: the server's working directory. |