Find definitions and usages
hoi4.source_lookupLocate script symbol definitions and usages across game, DLC, and mod files by symbol or file path and line, returning source context for navigation and debugging.
Instructions
Find where a script symbol is defined and used across the game, DLC and mod. Pass a symbol, or a file path and line. Example: {"symbol":"my_scripted_effect"}. Returns up to 3 definitions with source text and 10 usages; keyPath and view=structure navigate nested blocks.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "hoi4.source_lookup"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | ||
| line | No | ||
| path | No | ||
| view | No | source | |
| column | No | ||
| symbol | No | ||
| keyPath | No | ||
| fromLine | No | ||
| maxLines | No | ||
| fromColumn | No | ||
| childOffset | No | ||
| maxChildren | No | ||
| workspaceId | No | current | |
| maxReferences | No | ||
| maxDefinitions | No | ||
| expectedRevision | No | ||
| includeReferences | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| data | Yes | ||
| status | Yes | ||
| blockers | No | ||
| artifacts | No | ||
| validation | Yes | ||
| diagnostics | No | ||
| workspaceId | Yes | ||
| changedFiles | No | ||
| filesScanned | No | ||
| proposedFiles | No |