Copy a shared file
copy_shared_fileSaves a copy of a file someone shared in a conversation to the person's drive.
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": {
"workspace": "<workspace>",
"type": "<type>",
"conversationId": "<conversationId>",
"messageId": "<messageId>",
"fileId": "<fileId>"
},
"name": "copy_shared_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| type | Yes | ||
| fileId | Yes | ||
| driveId | No | Default the person's own drive. | |
| parentId | No | ||
| messageId | Yes | ||
| workspace | Yes | Workspace slug from workspaces.list, e.g. "acme". | |
| conversationId | Yes | Channel or direct message id, from list_conversations. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | ||
| route | Yes |