cyd_package_upload
Upload a file to a specific app directory on the CYD desktop after SHA-256 verification, with optional replacement and base64 encoding for binary assets.
Instructions
Machine-specific (cyd). Action, L1. Atomically upload one file into /sd/apps/<app_id>/ after SHA-256 verification. Text by default; pass encoding "base64" for binary assets such as JPEG images. Existing files are kept unless replace is true. Fails while a foreground app is running.
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": {
"app_id": "<app_id>",
"file": "<file>",
"content": "<content>"
},
"name": "cyd_package_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | ||
| app_id | Yes | ||
| content | Yes | ||
| replace | No | ||
| encoding | No | utf8 |