get_symbol_declaration

[references]

Returns declaration locations for a stable symbol key.

Why this tool exists

Safe edits depend on real symbol relationships, not text matches in comments, strings, or similarly named modules.

How it helps the agent

The model can see actual declarations, references, implementations, and conservative cleanup candidates before editing.

Try it locally in the TGlider playground

Parameters

NameTypeRequiredDescription
symbolKeystringYesStable symbol key returned by a prior symbol discovery tool.

Examples

Find declarations for a symbol

Request
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_symbol_declaration",
    "arguments": {
      "symbolKey": "role=canonical|..."
    }
  }
}

Response Notes

Returns declaration locations and declaration metadata.

↑/↓ NavigateEnter OpenSpace Expand