Skip to main content

Drive Copy File

Immutable Catalog Entry

This descriptor comes from the active versioned Portal catalog.

WRITEgoogle.drive_copy_file
  • Contract tier: agent_ready
  • Risk: write
  • Catalog version: google-2026.07.12.2
  • Descriptor hash: 1c62c7a935123e341ca19316c61e08c69b6f823d29c0cc3cdf6ff15328de1d72

Copy a Drive file. It creates or updates Google provider state and requires per-request Google OAuth. The result is returned in a normalized bounded envelope.

Request Body

{
"jsonrpc": "2.0",
"id": "google-drive-copy-file-example",
"method": "tools/call",
"params": {
"name": "google.drive_copy_file",
"arguments": {
"file_id": "file_id_123",
"name": "name_example",
"confirm": false,
"parent_id": "parent_id_123",
"allow_any_parent": false
}
}
}

Arguments Schema

{
"type": "object",
"title": "drive_copy_fileArguments",
"required": [
"file_id"
],
"properties": {
"name": {
"type": "string",
"title": "Name",
"default": "",
"description": "Provider-visible resource name."
},
"confirm": {
"type": "boolean",
"title": "Confirm",
"default": false,
"description": "Required true for high-risk operations when confirmation is enforced."
},
"file_id": {
"type": "string",
"title": "File Id",
"description": "Google Drive file ID."
},
"parent_id": {
"type": "string",
"title": "Parent Id",
"default": "",
"description": "Optional Google Drive parent folder ID. Folder-style aliases such as folder_id, folderId, parent_folder_id, parentFolderId, and parents are normalized here."
},
"allow_any_parent": {
"type": "boolean",
"title": "Allow Any Parent",
"default": false,
"description": "Set true only when intentionally bypassing the configured Drive parent allowlist."
}
},
"additionalProperties": false
}

Output Schema

{
"type": "object",
"required": [
"ok",
"data",
"error",
"meta"
],
"properties": {
"ok": {
"type": "boolean",
"description": "Whether the local or Google provider operation completed successfully."
},
"data": {
"anyOf": [
{
"type": "object",
"additionalProperties": true
},
{
"type": "array",
"items": {}
},
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "null"
}
],
"description": "Bounded local navigation or Google provider result when ok is true."
},
"meta": {
"type": "object",
"description": "Safe timing, pagination, cache, request, and truncation metadata.",
"additionalProperties": true
},
"error": {
"anyOf": [
{
"type": "object",
"additionalProperties": true
},
{
"type": "null"
}
],
"description": "Safe structured error when ok is false."
}
},
"description": "Google MCP normalized operation envelope.",
"additionalProperties": false
}

Code Examples

curl -X POST 'https://portal.madpanda3d.com/api/mcp' \
-H 'Authorization: Bearer mad_live_***' \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc": "2.0",
"id": "google-drive-copy-file-example",
"method": "tools/call",
"params": {
"name": "google.drive_copy_file",
"arguments": {
"file_id": "file_id_123",
"name": "name_example",
"confirm": false,
"parent_id": "parent_id_123",
"allow_any_parent": false
}
}
}'

Example Responses

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