Skip to main content

Drive Upload File

Snapshot Catalog Entry

This page is generated from broker tools/list snapshot data.

POSTgoogle.drive_upload_file

Upload a file to Drive from text or base64 content.

Request Body

{
"jsonrpc": "2.0",
"id": "google-drive-upload-file-example",
"method": "tools/call",
"params": {
"name": "google.drive_upload_file",
"arguments": {
"name": "name_example",
"content": "content_example",
"mime_type": "mime_type_example",
"parent_id": "parent_id_123",
"is_base64": false,
"allow_any_parent": false
}
}
}

Arguments Schema

{
"properties": {
"name": {
"type": "string"
},
"content": {
"type": "string"
},
"mime_type": {
"type": "string"
},
"parent_id": {
"type": "string"
},
"is_base64": {
"type": "boolean"
},
"allow_any_parent": {
"type": "boolean"
}
},
"required": [
"name",
"content"
],
"type": "object"
}

Code Examples

curl -X POST 'https://madpanda3d.com/lab/mad-mcps/portal/api/mcp' \
-H 'Authorization: Bearer mad_live_***' \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc": "2.0",
"id": "google-drive-upload-file-example",
"method": "tools/call",
"params": {
"name": "google.drive_upload_file",
"arguments": {
"name": "name_example",
"content": "content_example",
"mime_type": "mime_type_example",
"parent_id": "parent_id_123",
"is_base64": false,
"allow_any_parent": false
}
}
}'

Example Responses

{
"ok": true,
"message": "Tool google.drive_upload_file executed successfully.",
"note": "Response shape varies by MCP tool. Inspect live responses for exact fields."
}