Dry-run a Lugh program in the sandbox
lugh_runDry-run a Lugh program in a sandbox so every fs, http, MCP, and shell call passes real policy gates and budgets; returns output plus a policy log to preview an agent's actions before real execution.
Instructions
Run a Lugh program's goals in a sandbox. fs, http, mcp and shell act on a simulated world (see lugh_sandbox), but every call passes the real policy gate and budgets. Returns the output and a policy log of every action and its decision (allowed, approved, declined, denied). Use it to show a person exactly what an agent would do before it runs for real.
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": {
"code": "<code>"
},
"name": "lugh_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | A complete Lugh program, starting with `agent <Name>`. | |
| approvals | No | How to answer `ask human` and policy approvals. Default approve. |