Add or remove storage area
tzcloud_declare_storage_areaDeclare a file-storage area before uploading, or remove an empty one with remove: true. Its application, whether files are keyed by end user, and version keeping cannot change. Different declarations are refused differing_redeclaration.
A matching manifest object_storage entry records its use but is optional. Its areas list declares them on submission, needing neither this tool nor mintArea. Otherwise declare with this tool or the Storage client's mintArea at backend start. Repeating identical values is safe and changes nothing.
Then upload with tzcloud_mint_upload_grant and its command. With no shell, get the page's address from tzcloud_read_status's dashboard, passing brief: false. Ask your user to sign in there and use Upload a file. To remove, pass only remove: true and name. Files in either environment cause area_not_empty. Otherwise removal frees the name.
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": {
"name": "<name>"
},
"name": "tzcloud_declare_storage_area"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Area name: a letter or digit, then letters, digits, `-` or `_`, at most 64 characters. The `export-` and `deploy-` prefixes, from `tzcloud_request_export` and `tzcloud_deploy`, and `images-<application id>` are reserved (`area_name_reserved`). Stable for the area's life. | |
| remove | No | Pass `true`, with `name` alone, to remove the area: it must hold no file in either environment, and its name is then free. Absent or `false`, the call declares. | |
| application | No | Your application id from `tzcloud_list_applications`, required to declare, else `application_required`. Fixed per area; use a new name for another application. | |
| account_keyed | No | Required to declare: `true` or `false`; without it a declaration is refused 400 `invalid_request`. Leave it out with `remove: true`. The platform records the value and compares it on redeclaration. It does not yet separate files by end user, so your backend checks who may read each file. | |
| version_keeping | No | Required to declare: whether earlier versions of a file are kept, `false` alone at this version. Without it a declaration is refused 400 `invalid_request`. Leave it out with `remove: true`. |