Returns lightweight metadata about a symbol (function, class, variable, type) without the full context that heavier tools provide. The fastest way to check what a symbol is, see its signature, or get a usage count.
stellarion_get_ai_context would be too heavy for what you need| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| uri | string | Yes | -- | File URI containing the symbol (e.g., file:///path/to/file.ts) |
| line | number | Yes | -- | Line number of the symbol (0-indexed) |
| includeReferences | boolean | No | false | Include all reference locations. Can be slow on large workspaces. |
Natural Language: "What's the signature of the function on line 42?"
MCP Tool Call:
{
"name": "stellarion_get_symbol_info",
"arguments": {
"uri": "file:///home/dev/project/src/utils/transform.ts",
"line": 42
}
}
Returns:
{
"name": "transformData",
"kind": "function",
"signature": "function transformData(input: RawData, options?: TransformOptions): Result<ProcessedData>",
"visibility": "public",
"uri": "file:///home/dev/project/src/utils/transform.ts",
"lineRange": [42, 78],
"properties": {
"is_async": true,
"is_exported": true
}
}
Natural Language:
"How many places reference OldFormatter?"
MCP Tool Call:
{
"name": "stellarion_get_symbol_info",
"arguments": {
"uri": "file:///home/dev/project/src/formatters/old.py",
"line": 5,
"includeReferences": true
}
}
Returns: Symbol metadata plus a references array listing every file and line where OldFormatter is referenced. Useful for confirming whether it is safe to remove.
Natural Language: "What kind of symbol is on line 10 of models.rs?"
MCP Tool Call:
{
"name": "stellarion_get_symbol_info",
"arguments": {
"uri": "file:///home/dev/project/src/models.rs",
"line": 10
}
}
Returns: Name, kind (struct), visibility (pub(crate)), signature, line range, and properties like whether it derives common traits.
is_async, is_static, is_exported, is_abstract, etc.includeReferences: true) Array of {uri, line} for every reference locationstellarion_get_ai_context or stellarion_get_detailed_symbol when you need full source code and relationships.includeReferences off by default. It requires scanning the entire workspace and can be slow on large codebases. Only enable it when you specifically need reference locations.properties object varies by language. TypeScript symbols may have is_async and is_exported. Rust symbols may have is_unsafe and is_generic. Python symbols may have is_classmethod and is_staticmethod.stellarion_get_detailed_symbol instead.