ollie/data/tools/lsp_references.meta

28 lines
889 B
Plaintext

{
"description": "Find all references to symbol at position. Capped at 50.",
"prompt": "## lsp_references\n\nFind all references to symbol at position. Capped at 50.\n\n**Args**: `[path, line, col]`\n\n```\nlsp_references(path=\"/abs/path.go\", line=\"42\", col=\"10\")\n```\n\n**Returns**: `file:line:col` per reference.\n\n**Prefer over `file_grep`** for semantic references — won't match comments, strings, or unrelated identifiers.",
"args": {
"type": "object",
"required": [
"path",
"line",
"col"
],
"properties": {
"path": {
"type": "string",
"description": "Absolute file path"
},
"line": {
"type": "string",
"description": "Line number (1-indexed)"
},
"col": {
"type": "string",
"description": "Column number (1-indexed)"
}
}
},
"scope": "read"
}