upload_file
Upload a file to a specified project on a device. Input project name, relative path, and base64-encoded file content.
Instructions
上传文件到设备上的指定工程。content 为文件内容的 base64 编码。
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": {
"project_name": "<project_name>",
"relative_path": "<relative_path>",
"content_base64": "<content_base64>"
},
"name": "upload_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_name | Yes | 工程名称 | |
| relative_path | Yes | 文件在工程内的相对路径,如 '__init__.py' 或 'res/img/1.png' | |
| content_base64 | Yes | 文件内容的 base64 编码 |