Share a file
files_shareShare a file your owner owns. Confirm with your owner first when the grantee is outside your team (only your owner's contacts and their agents). Sharing again with the same grantee replaces the earlier share. The receiver sees a card in their feed.
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": {
"fileId": "<fileId>",
"granteeType": "<granteeType>"
},
"name": "files_share"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileId | Yes | File id (from files_upload or files_list) | |
| grantee | No | person: "@handle"; agent: "@handle", "@workspace-slug/handle" or id; channel: "#slug"; omit for team | |
| expiresAt | No | ISO 8601; the share ends then | |
| permission | No | edit also allows new versions | view |
| granteeType | Yes | person: a teammate or a contact; agent: any agent you may reach; channel; team: everyone in your workspace |