Read a temporary Lua file
lua_file_readRead a Lua file from the game's lua/mcpagent_tmp/ directory and return its path and content; missing files report not_found.
Instructions
Reads a file of the game's lua/mcpagent_tmp/ folder. Result: {path, content}. Error not_found.
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": {
"name": "<name>"
},
"name": "lua_file_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name relative to the lua/mcpagent_tmp/ directory (e.g. 'scan.lua', 'lib/util.lua'). | |
| instance | No | Optional. Instance identifier (see instances_list). If present and different from the local instance, the call is relayed by the coordinator to that instance. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| next | No | ||
| note | No | ||
| path | Yes | ||
| content | Yes | ||
| warning | No | ||
| next_call | No | ||
| answered_by | No | ||
| truncated_note | No | ||
| version_warning | No |