cc_push
Upload a local UTF-8 text file to a ComputerCraft computer with automatic chunking; overwrite by default or append, so you can deploy programs instead of pasting source.
Instructions
Upload a local UTF-8 text file to the computer, chunked automatically; overwrites unless append=True. Relative local paths are taken from the first folder in CC_MCP_FILES_ROOT; only the folders listed there are allowed. Use this to deploy programs instead of pasting their source through cc_write.
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": {
"local_path": "<local_path>",
"remote_path": "<remote_path>"
},
"name": "cc_push"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| append | No | ||
| computer | No | ||
| local_path | Yes | ||
| remote_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |