attach_file
Attach any file to a note (saved in the branch's attachments/; a Markdown reference is appended unless link=false). Give ONE of: data base64 (only for small files, up to ~3 MB), url fetched server-side (up to 25 MB), or neither: you get an upload link for the user (one tap, works everywhere) and a signed PUT URL for you. For a file the user gave you in the chat, call it with neither.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | ||
| data | No | ||
| link | No | ||
| name | Yes | With extension | |
| path | Yes | Note or folder | |
| confirm | No | ||
| workspace | No | Usually OMIT: the path finds its brain. Pass it only when a reply asks (new or ambiguous branch), with the brain the user named (if unclear ASK): id, 'mine', or owner name/email. A brain where the branch does not exist is refused. |