spawn or queue_add. Your client uploads the bytes; the MCP server never reads a local file path.
Request
attachments array. Each item requires a file basename, concrete MIME type, and exact byte count between 1 and 104857600. There are no defaults for these fields.
Upload and attach
The response’suploads array contains, for each file:
- Use your own HTTP tool to PUT the raw bytes to each
upload_url, with all returned headers and the exactContent-Length. Do not use JSON or multipart encoding. NoAuthorizationheader is needed for the upload. - Wait for every upload to succeed.
- Pass the returned
staged_attachmentobjects as thestaged_attachmentsarray onspawnorqueue_add, using the same authenticated MCP session.
upload tool.