cc_write
Writes or appends UTF-8 text to a file on a ComputerCraft computer, overwriting by default. Use append mode for files larger than 100 KB and keep each call under that limit.
Instructions
Write (or append to) a file on the computer. Text is sent as UTF-8; keep each call under ~100 KB and use append=True for larger files. Overwrites without asking.
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": {
"path": "<path>",
"content": "<content>"
},
"name": "cc_write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| append | No | ||
| content | Yes | ||
| computer | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |