crosspad_search_symbols
Search CrossPad repositories for symbol definitions—classes, functions, macros, enums, typedefs—while skipping call sites and declarations, and classify matches by kind.
Instructions
Search symbol DEFINITIONS (classes, functions, macros, enums, typedefs) across the CrossPad repos via git grep. Filters to definitions only (skips call sites and declarations), classifies the kind and aggregates all repos. Substring match: 'Foo' matches FooBar and MyFoo. Vendored and generated trees (lvgl, managed_components, thorvg, TFT_eSPI, STM Drivers/Middlewares/CMSIS, build, ...) are skipped; pass include_vendored=true to scan them.
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": "crosspad_search_symbols"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | all | |
| query | Yes | Symbol name (substring match, case-insensitive on filter) | |
| repos | No | Repo names to scan, or ['all']. Names: crosspad-core, crosspad-gui, crosspad-pc, platform-idf, ESP32-S3, stm32-r20, crosspad-hil. | |
| max_results | No | ||
| context_lines | No | Surrounding lines per match (like grep -C). 0 = no context. | |
| include_vendored | No | Scan vendored/generated trees too (lvgl, managed_components, STM Drivers/Middlewares, build, …). Default false — these are almost always noise. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| docs | No | ||
| next | No | ||
| error | No | ||
| query | No | The search text, as given. | |
| notice | No | ||
| results | No | The matches, up to max_results. | |
| success | Yes | ||
| truncated | No | The list stops at max_results. | |
| kind_filter | No | The kind filter, when one was given. | |
| total_matches | No | How many matches were found before the cut at max_results. |