Find a modding rule
hoi4.reference_searchSearch offline wiki and installed game docs by plain words or script name to find HOI4 modding rules. Returns up to 10 candidates with file, lines, revision, and command meaning to select right rule.
Instructions
Find a modding rule in the offline wiki and installed game docs by plain words or script name. Returns up to 10 short candidates (limit up to 12) with file, lines, revision and, for a command, a one-line meaning and its scopes. Pick the one that fits, since several commands sound alike, then read it with hoi4.reference_read using its id and revision. Example: {"query":"add_timed_idea"} or {"query":"make a country hold elections now"}.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>"
},
"name": "hoi4.reference_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| query | Yes | ||
| sources | 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 |