craftos_type
Types keyboard text into an emulated ComputerCraft computer and returns immediately instead of waiting for the program, so agents can send input ahead or to busy programs.
Instructions
Type text into the computer, like a player at the keyboard, and return "ok" at once without waiting for the program. Prefer craftos_act with text, which also waits until the program read it and the screen settled; use this one to type ahead or into a program that is busy.
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>",
"text": "<text>"
},
"name": "craftos_type"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Id returned by craftos_session_create. | |
| text | Yes | Characters to type, as char events. | |
| enter | No | Press Enter after the text (default true). |