script_write
Compiles and installs Lua source on a live table from code or file_path, optionally checking expected_sha256 before writing. On failure, the previous script stays active; read the console.
Instructions
Compile and install Lua source on the live table. Supply exactly one of code/file_path. expected_sha256 checks the current source before writing. A compile failure returns isError and the previous script stays active. Read console afterwards.
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": "script_write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | ||
| object | No | Stable object GUID (preferred), or current runtime id. | |
| target | No | global | |
| table_id | No | Omit to use the active connected table. | |
| file_path | No | ||
| template_id | No | ||
| expected_sha256 | No |