Create file upload link
tzcloud_mint_upload_grantCreate a single-use upload grant for one file or deploy ZIP in an application's storage area, without a long-lived token. It expires after five minutes by default. Declare the area bound to this application first. For a ZIP, upload then call tzcloud_deploy with artifact: { area, name, hash }. The file counts as stored data. Over quota, upload refuses usage_over_quota.
The grant appears once. Run command_npx (command_npx_windows on Windows), or installed command or command_windows, once as returned. If a command cannot run, including missing or refused npx or an incompatible file name, use commands.curl or commands.powershell. They are always returned for POSIX shells and Windows PowerShell respectively. Each sends the grant as bearer with no other header.
With no shell, get the page's address from tzcloud_read_status's dashboard, passing brief: false. Ask your user to open it after signing in and use Upload a file. Do not call this tool for that upload.
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": {
"application": "<application>",
"area": "<area>",
"name": "<name>"
},
"name": "tzcloud_mint_upload_grant"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| area | Yes | Target area declared for this application with `tzcloud_declare_storage_area`; `undeclared_area` if absent, `area_scope_refused` if bound elsewhere or the platform's export area. | |
| name | Yes | The file's name within the area, verbatim, slashes included, and the one file the grant reaches; a name a write refuses, one holding a backslash or a segment that ends with a dot, is refused. A write replaces that stored file irreversibly. | |
| identity | No | The acting identity the write records, fixed by the grant, so the upload sends no identity header. | |
| local_path | No | The file on your machine to upload, absolute or relative to the folder the line runs in; absent, the file named by the last segment of `name`, in that folder. A path the pattern refuses, `~`, or one opening with `~/` or `~\` is refused `invalid_request`. | |
| application | Yes | The id of the application the upload is for, from `tzcloud_list_applications`. The area must be bound to it. | |
| environment | No | The environment whose partition of the area receives the file; absent, the application's deploy target, the partition its deploy reads an artifact from. A stored entry in `tzcloud_deploy_files` reads its deploy target's partition. |