Title100/100
Copy file
The title clearly communicates the tool’s action and subject. Keep it concise.
Description96/100
Call this tool to copy an existing File in Google Drive. The tool allows specifying a new title and a parent folder for the copy. If the title is not specified, the copy title will be 'Copy of {original title}'. If the parent folder is not specified, the copy will be created in the same folder as the original file, unless the requesting user does not have write access to that folder, in which case the copy will be created in the user's root folder.Returns the newly created File object upon successful copying.
The description explains the capability, when to use it, and what to expect.
Inputs75/100
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
fileId
Required. The ID of the file to copy.
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
parentId
The parent id of the newly created file. If empty, the file will be created with the same parent as the original file.
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
title
The title of the newly created file. If empty, the title will be 'Copy of {original file title}'.
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
Annotations100/100
All four behavior hints are declared.
{
"title": "Copy file",
"readOnlyHint": false,
"openWorldHint": true,
"idempotentHint": false,
"destructiveHint": false
}Output schema77/100
The output schema explains the structured result.
View output schema
{
"type": "object",
"$defs": {
"FolderProperties": {
"type": "object",
"properties": {
"syncFolder": {
"type": "boolean",
"description": "Whether the folder is a synced folder from a computer or device."
},
"syncedComputer": {
"type": "boolean",
"description": "Whether the folder is the root folder representing a synced computer or device."
}
},
"description": "Properties specific to folders."
}
},
"properties": {
"id": {
"type": "string",
"description": "The id of the file that was fetched."
},
"owner": {
"type": "string",
"description": "The email address of the owner of the file."
},
"title": {
"type": "string",
"description": "The title of the file."
},
"starred": {
"type": "boolean",
"description": "Whether the file has been starred."
},
"trashed": {
"type": "boolean",
"description": "Whether the file is in the trash."
},
"viewUrl": {
"type": "string",
"description": "The URL to view the file."
},
"fileSize": {
"type": "string",
"format": "int64",
"description": "The size in bytes of the file."
},
"mimeType": {
"type": "string",
"description": "The mime type of the file."
},
"parentId": {
"type": "string",
"description": "The (optional) id of the parent of the file."
},
"readOnly": {
"type": "boolean",
"description": "Whether the content of the file is read-only (locked)."
},
"createdTime": {
"type": "string",
"format": "date-time",
"description": "The time that the file was created."
},
"description": {
"type": "string",
"description": "The description of the file."
},
"resourceUri": {
"type": "string",
"description": "The resource URI of the file."
},
"modifiedTime": {
"type": "string",
"format": "date-time",
"description": "The most recent time at which the file was modified."
},
"fileExtension": {
"type": "string",
"description": "The original file extension of the file, this is only populated for files with content stored in Drive."
},
"canAddChildren": {
"type": "boolean",
"description": "Whether the requester can add children to this folder. This is always false for non-folder types."
},
"contentSnippet": {
"type": "string",
"description": "Generated snippet about the content of the file."
},
"readOnlyReason": {
"type": "string",
"description": "The reason why the file was put into a read-only (locked) state."
},
"viewedByMeTime": {
"type": "string",
"format": "date-time",
"description": "The most recent time at which the file was viewed by requester."
},
"folderProperties": {
"$ref": "#/$defs/FolderProperties",
"description": "Populated only for folders with special properties."
},
"sharedWithMeTime": {
"type": "string",
"format": "date-time",
"description": "The time that the file was shared with the requester."
},
"inheritedPermissionsDisabled": {
"type": "boolean",
"description": "Whether inherited permissions are disabled on this folder. This is always false for non-folder types."
}
},
"description": "A file resource."
}