Update file
update_fileRename or move a file or folder in the user's Replo Files, within its project, or replace a file's contents with source: inline text, inline base64, or an asset already in this Replo project, as in create_file (text without contentType keeps the file's type). It only changes files in Replo; nothing is fetched from a URL or an outside service. Read the file with read_file before replacing it. The file keeps its id and sharing; folders take no source. Set parentId to null to move it to My Files. Without source, the contents stay; name conflicts never overwrite. For multi-step Replo work, call skills with name "replo".
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": {
"fileId": "<fileId>"
},
"name": "update_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| fileId | Yes | ||
| source | No | New contents for the file: inline text, inline base64, or an asset already in this Replo project. Nothing is fetched from a URL or an outside service. Replaces the contents in place; its id and sharing stay. Folders take no source. | |
| parentId | No |