create_upload_token
Make an upload token: a short-lived credential to give a browser, such as a recording page, so it uploads assets with upload_asset's REST route without ever holding your API key. It only records assets whose names start with its prefix, up to max_size, in one project, and never replaces an existing asset. It lasts 15 minutes unless expires_in says otherwise.
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": {
"prefix": "<prefix>"
},
"name": "create_upload_token"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prefix | Yes | The token only records assets whose names start with this, such as `recordings/u_42/`. | |
| max_size | No | The largest file it records, in bytes; any size assets allow when absent. | |
| expires_in | No | Seconds until it expires, from 60 to 86400; 900 (15 minutes) when absent. | |
| project_id | No | The project its assets go in; the workspace's default project when absent. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | Yes | Send it as `Authorization: Bearer <token>` to `PUT /v1/assets/{name}`. | |
| prefix | Yes | Every asset name it uploads starts with this. | |
| max_size | Yes | The largest file it uploads, in bytes. | |
| expires_at | Yes | RFC 3339. | |
| project_id | Yes | The project its assets go in. |