sync_assets
Make a folder of assets match a local folder in one call: give every file's path, SHA-256 and size. Files the workspace has are recorded at once; you get an upload to make for each of the others, then call again to record them. A file over 100 MiB gets a multipart upload: PUT each part, keep each part's ETag, and in the next call give that file multipart (its upload_id and every part's part_number and etag).
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": {
"files": "<files>"
},
"name": "sync_assets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | Every file of the local folder, up to 1000. | |
| prefix | No | The workspace folder, ending in `/`, or empty for the whole workspace. | |
| project_id | No | The project new assets go in; the workspace's default project when absent. | |
| delete_missing | No | Also delete the folder's assets that aren't in `files`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| deleted | Yes | Names deleted because they weren't in `files`. | |
| uploads | Yes | Files to upload before the next request. | |
| recorded | Yes | Names recorded or already up to date. |