clangd_workspace_symbols
Finds C/C++ workspace symbols by fuzzy name query with clangd and returns relevance-ordered matches capped by a limit; a non-empty query prevents full-index results.
Instructions
在工作区内按名称模糊搜索符号(workspace/symbol)。query 必填且不能为空(避免返回全量索引);结果按 clangd 相关性顺序,超过 limit 截断。
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": "clangd_workspace_symbols"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | 最多返回多少条,默认 50 | |
| query | Yes | 符号名或片段(模糊匹配),1..128 字符 |