Search
search_code
Search workspace symbols, component render sites, prop usages, or literal text in-process.
search_code runs completely in-process (no external rg or subprocess spawning required) and returns symbolId and hash-verified sourceRef handles ready to pass into inspect_file, query_graph, or read_slice.
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
query | string (required) | — | Symbol name, component name, prop/event name, or literal text. |
kind | 'symbol' | 'component_usage' | 'prop_usage' | 'text' | 'symbol' | Search mode. |
symbol_kinds | string[] | — | Filter for kind: "symbol" (e.g. ['component', 'store', 'composable', 'function']). |
package | string | — | Restrict search to one monorepo package. |
path_prefix | string | — | Optional relative directory prefix filter. |
limit | integer (1..500) | 30 | Maximum matches returned per page. |
cursor | string | — | Pagination cursor (o_<offset>). |
root | string | session root | Workspace root directory. |
format | 'text' | 'json' | 'text' | Output format. |
max_bytes | integer (>= 512) | 16384 | Maximum UTF-8 response size. |
Search Modes
symbol: Fast workspace-wide symbol lookup powered by SQLite FTS5 (bm25ranking).component_usage: Finds where a component is rendered in templates or JSX across packages (handles kebab-case and PascalCase matching).prop_usage: Finds every render site passing a specific prop or event listener.text: Scoped literal text search over indexed frontend files (capped at 500 matches).