craftos_advance
Jump the virtual clock forward by N seconds to fire all due timers in order, so sleep and timeout logic pass instantly and deterministically in ComputerCraft programs.
Instructions
Jump the virtual clock forward by N seconds and fire every timer that falls due in that window (earliest first), so sleep(), timeouts, countdowns and inactivity logic pass instantly and deterministically. os.clock()/os.epoch() move too. Timers due later keep their real deadline. Then waits for the program to settle.
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": {
"id": "<id>",
"seconds": "<seconds>"
},
"name": "craftos_advance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Id returned by craftos_session_create. | |
| seconds | Yes | How far to jump, in seconds (up to a day). | |
| timeoutMs | No | Longest wait for the program to settle afterwards. |