Prepare project media upload
projects_media_uploadPrepare an upload into the project media library. This does not accept file bytes. It returns a one-time curl command for POST /projects/:id/media. Run that command in the shell and replace FILE with the local file path. The curl response contains the public URL. Do not base64-encode the file and do not put file contents in this tool. One token allows one request; add more -F media=@path arguments to upload several files together. If the upload fails, call this tool again. The token expires in 10 minutes.
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": {
"project_id": "<project_id>"
},
"name": "projects_media_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | UUID of a Bunstation project owned by the authenticated user. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| field | Yes | ||
| method | Yes | ||
| command | Yes | ||
| expires_at | Yes | ||
| project_id | Yes | ||
| upload_url | Yes | ||
| authorization | Yes |