Explain error.log lines
hoi4.explain_errorExplains error.log lines by identifying the broken rule, source file and line with surrounding context, and the fix, while checking command documentation.
Instructions
Explain error.log lines: the rule each one breaks, its file and line with the lines around it, and the fix, from a reviewed catalogue of the game's messages. Says whether the game documents the command a line names, and the closest documented names. Example: {"line":"Invalid trigger 'stability' in events/my_events.txt line : 12"}. Returns up to 20 explanations (10 lines).
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.explain_error"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | No | ||
| lines | No | ||
| workspaceId | No | current |
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 |