craftos_send_event
Queue any ComputerCraft event such as 'timer' or 'redstone' and get an immediate 'ok'; use it for events no other tool produces, then call craftos_settle so the program can react.
Instructions
Queue any event on the computer, as os.queueEvent would, and return "ok" at once. Use it for events nothing else produces, e.g. name 'timer' with params [3], or 'redstone'. For keys, typing and touches use craftos_act; to change the world itself (redstone input, items, players) use craftos_sim_command. Follow with craftos_settle to let the program react.
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>",
"name": "<name>"
},
"name": "craftos_send_event"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Id returned by craftos_session_create. | |
| name | Yes | Event name, the first value os.pullEvent returns. | |
| params | No | The event's other values, in order. |