Upload a file (EXPERIMENTAL x-mcp-file)
upload_file_experimentalReceive an inline base64 file payload and return its decoded size and SHA-256 digest for validation, without storing the file.
Instructions
EXPERIMENTAL, not part of the MCP spec: a tool whose "file" argument is marked with x-mcp-file, following the draft of the io.modelcontextprotocol/files extension (inline base64 only, no out-of-band upload). Returns the size and SHA-256 of the received file; nothing is stored.
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": {
"file": "<file>"
},
"name": "upload_file_experimental"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | The file (FileInput shape of the experimental io.modelcontextprotocol/files extension) |