draft_attach
Put a file on one of the user's open drafts, or take one off, only when the user asked. Give one of:
file: a file or document in Files, by its id (docs_search, docs_list). A document goes as its PDF (as Download as PDF makes it).
message: a message's files, by its id; part (from mail_attachments) for one of them, else all of them, as Forward takes them.
remove: a file on the draft, by its number there (draft_list with draft: files), to take it off. Only a file everyone who sees the draft's mailbox may already open, since its copy in Sent shows to them all: a draft in a Team mailbox takes files only from a Files space the team sees (Company, or files set to Team) or a mailbox the team sees. Nothing is sent: the user reads the draft before Send. Each change shows in their Activity under your name, with Undo. Optional reason: why you're making this change, in one sentence the person reads (at most 1000 characters). Optional sources: reference addresses in Home, such as /mail/#/c/12; never message or document text.
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": {
"draft": "<draft>",
"author": "<author>"
},
"name": "draft_attach"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | ||
| part | No | ||
| draft | Yes | ||
| model | No | ||
| author | Yes | ||
| reason | No | ||
| remove | No | ||
| message | No | ||
| sources | No |