read_block
Extract a specific block from a script file by providing a file path and nested key path, retrieving only the needed data instead of the whole file.
Instructions
Read one block out of a script file instead of the whole thing.
file: path relative to the game/mod script root, e.g. 'common/religions/00_religion.txt'. key_path: keys to walk into, e.g. ['catholic'] or ['my_event', 'trigger']. source: 'vanilla' or a mod directory name, when the same path exists in both.
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": {
"file": "<file>"
},
"name": "read_block"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | ||
| source | No | ||
| key_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||