Save a file to STEM
upload_fileOn explicit user request, save actual file bytes privately to STEM. Requires a media-enabled plan. Use a host-provided file reference, or actual base64 bytes from a file-capable client; never invent bytes or a URL. Maximum 8 MiB per call; larger files use the STEM Library. If unavailable, direct the user to the Library and do not claim the image was saved.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "upload_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | ||
| name | No | File name, required for data_base64. | |
| data_base64 | No | Alternative actual file bytes, standard base64, maximum 8 MiB decoded. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| file | No | ||
| next | No | ||
| status | No | ||
| attached | No |