productivity_get_attachment
Fetch a task attachment's contents, shaped by file kind.
Full description
Fetch a task attachment's contents, shaped by file kind.
Required: space_id.
Optional config keys: * include_content (bool, default true): set false for metadata only * max_bytes (int, default 2 MB; hard cap 10 MB): guards binaries * force_binary (bool, default false): return base64 even for text/PDF * page_limit (int, default 50): for PDF text extraction
Return shape depends on the attachment's kind: *image: the raw image is returned as a native MCP image content block (the LLM sees the image directly), alongside a JSON metadata block. *text(utf-8 source files, JSON, CSV, Markdown, logs, etc.) : decoded text is returned in the JSONcontent.datafield. *pypdfand returned incontent.data;content.page_countandcontent.truncatedindicate scope. *binary: returned as base64 incontent.data. If the file is larger thanmax_bytes, a 413 with size info comes back instead; re-send with a highermax_bytes(capped at 10 MB) to fetch.
Parameters
| Name | Type | Required | Default |
|---|---|---|---|
attachment_id | str | required | none |
payload | dict | required | none |
Calls