search_structural
Find name-based candidates for a symbol's callers, callees, imports, defines, inheritors, or inherits in a Git checkout or indexed directory. Provide repo/cwd; verify paths and source.
Instructions
Find name-based related-symbol candidates, not compiler-verified bindings. For Git checkouts, call resolution prefers matches in the caller file, keeping ties; otherwise it keeps checkout-wide matches. Verify paths and source. Supply 'repo' (absolute checkout/directory path) or 'cwd' (a directory inside it); 'repo' takes precedence. Git worktrees resolve through Git and registered families; directory roots through database registration. A first search can register and index a new linked worktree when its family already permits indexing. Subsequent searches use that checkout's last completed index; incomplete Git operations retain it.
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": {
"symbol": "<symbol>",
"relation": "<relation>"
},
"name": "search_structural"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Directory inside the target checkout or registered directory. Used when 'repo' is absent; no configuration marker is needed. | |
| repo | No | Absolute path of the target checkout/worktree or indexed directory. Optional if 'cwd' is provided. | |
| symbol | Yes | ||
| relation | Yes |