Search the built code
search_codeSearch project source files using a regex pattern to pinpoint specific markup or tokens, returning matches with line numbers and context for immediate code inspection.
Instructions
Grep the project's own files for a regex and get back matches with line numbers and context. This is how you find what Claude Design actually built without downloading anything: locate the markup or token, then read_file that region.
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": {
"projectId": "<projectId>",
"pattern": "<pattern>"
},
"name": "search_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flags | No | Regex flags | i |
| prefix | No | Only search paths starting with this | |
| pattern | Yes | JavaScript regex source, e.g. shelf-builder|line-tab-feed | |
| projectId | Yes | ||
| maxMatches | No | ||
| contextLines | No |