Document Read
document_readRead accessible campaign documents as text or download them as PDFs. Use ETags to conditionally fetch only changed files, preserving cached copies.
Instructions
Read an accessible document as text or a local binary download. Use document_list/campaign_document_list to discover IDs; use document_update to replace txt/md content. Upstream checks asset visibility, including shared access. Does not modify upstream data, but binary reads atomically replace downloads/.pdf (or .bin) locally; readOnlyHint refers to the upstream resource. Text returns mime_type/etag/content. Binary returns mime_type/etag/file_path/file_size, never inline bytes. Pass etag unchanged for a conditional read: 304 returns not_modified=true without content, so retain your cached copy. Repeated reads may refresh the local file. Returns {ok:true,data} on success; tool-body failures return {ok:false,error} with optional diagnostic data. Argument-schema errors are MCP errors.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| etag | No | Previous response ETag, passed unchanged as If-None-Match; null requests content without a cache condition. | |
| document_id | Yes | Document asset ID; only ASCII letters, digits, underscores, and hyphens are accepted because it also names a local file. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||