Для AI-агентов: markdown этой страницы — /docs/mcp-tool-media-request-upload.mdиндекс документации — /llms.txt
media_request_upload
Обновлено
Step 1 of 2 — reserve immutable write-once slots for photos, videos and documents of any size; this is the way for every file above 128 KiB, and a large file is never printed as base64. Optional `media_kind` declares voice, audio or video_note and is verified against the uploaded bytes. Declare each file with `mime_type` and exact `size_bytes`; the response contains an `upload_id` and, per file, a presigned PUT URL with the `required_headers` and a ready `curl` command: replace FILE_PATH in it with the file's local path and run it. Without a shell, PUT every declared byte to `put_url` with those headers. Then call `media_finalize`.
Права и условия
required_scopes: ALL.
| Поле | Значение |
|---|---|
| description | "Step 1 of 2 — reserve immutable write-once slots for photos, videos and documents of any size; this is the way for every file above 128 KiB, and a large file is never printed as base64. Optional `media_kind` declares voice, audio or video_note and is verified against the uploaded bytes. Declare each file with `mime_type` and exact `size_bytes`; the response contains an `upload_id` and, per file, a presigned PUT URL with the `required_headers` and a ready `curl` command: replace FILE_PATH in it with the file's local path and run it. Without a shell, PUT every declared byte to `put_url` with those headers. Then call `media_finalize`." |
| domain | "content" |
| name | "media_request_upload" |
| platform_version | "1.0.34" |
| required_scopes | ["content:write"] |
| risk | "write" |
| scope | "content:write" |
| title | "Media Request Upload" |
Входные параметры
media_request_upload: inputSchema