Upload attachment
stride.upload_attachmentUpload a file to a story. Accepted mimeTypes: image/png, image/jpeg, image/gif, image/webp, application/pdf, application/zip (also .docx/.xlsx/.pptx), text/plain (logs, JSON, CSV, markdown — anything the sniffer reads as text). Pass the binary data as base64. Max 3 MB decoded (larger files: attach them in the Stride app). Binary types are validated by magic bytes against the declared mimeType; text has no magic bytes and passes on its declared text/plain. Returns the metadata + a URL to fetch the binary from REST.
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": {
"storyId": "<storyId>",
"filename": "<filename>",
"mimeType": "<mimeType>",
"data": "<data>"
},
"name": "stride.upload_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Base64-encoded file body (≤ 4 MiB encoded / 3 MB decoded). | |
| storyId | Yes | Story ticket key like "ORB-526" or a Stride UUID. | |
| filename | Yes | ||
| mimeType | Yes | Declared MIME type (e.g. image/png). |