vm_step
(session_id, input) -> output for channel adapters. First call for a session must include 'program'; the trace runs and suspends/finishes.
Instructions
(session_id, input) -> output for channel adapters. First call for a session must include 'program'; the trace runs and suspends/finishes. Subsequent calls for the same session_id resume the suspended trace with 'input' as the new turn's payload — 'program' may be omitted. Response includes 'suspended': bool signalling whether the caller must call vm_step() again to continue the conversation.
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": {
"session_id": "<session_id>"
},
"name": "vm_step"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | No | Context (first call) or resume payload (later calls). | |
| program | No | nano_vm.Program JSON. Required on first call. | |
| save_as | No | Optional name to save the program under. | |
| session_id | Yes | Caller-owned conversation identifier (e.g. a chat_id). |