Google Drive update file

drive__update_file

Access

Requires a project integration connection for drive.

Call type: Can change resources.

Arguments

FieldTypeRequiredDescription and constraints
fileIdstringYesGoogle Drive file ID to update
addParentsstringNoComma-separated parent folder IDs to add (use with removeParents to move)
removeParentsstringNoComma-separated parent folder IDs to remove (use with addParents to move)
fieldsstringNoPartial response field selector
namestringNoNew file name
descriptionstringNoNew file description
trashedbooleanNotrue moves the file to Trash; false restores it.

Example request

Send this JSON-RPC request through an initialized MCP client. Replace sample identifiers and values before calling the tool. See MCP client setup.

json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "drive__update_file",
    "arguments": {
      "fileId": "example"
    }
  }
}

Result

No output schema is published for this tool. The input contract does not define its return fields. Inspect the MCP response content and isError; do not assume a fixed object shape. See the drive integration reference for provider setup and tool context.

Full schemas

json
{
  "type": "object",
  "properties": {
    "fileId": {
      "type": "string",
      "description": "Google Drive file ID to update"
    },
    "addParents": {
      "type": "string",
      "description": "Comma-separated parent folder IDs to add (use with removeParents to move)"
    },
    "removeParents": {
      "type": "string",
      "description": "Comma-separated parent folder IDs to remove (use with addParents to move)"
    },
    "fields": {
      "type": "string",
      "description": "Partial response field selector"
    },
    "name": {
      "type": "string",
      "description": "New file name"
    },
    "description": {
      "type": "string",
      "description": "New file description"
    },
    "trashed": {
      "type": "boolean",
      "description": "true moves the file to Trash; false restores it."
    }
  },
  "required": [
    "fileId"
  ],
  "description": "Arguments for the drive__update_file tool."
}