Skip to content

Send a report and verify its file

Before you start. Delivery. Optional OCR needs AI actions.

  1. Start with the saved result of deliver_content and a file whose bytes and size you know.

  2. Call prepare_agent_news_attachment. Stage a file of up to 128 KiB with upload_agent_news_attachment, or transfer a larger supported file with the returned upload instructions. Complete with complete_agent_news_attachment.

  3. Compare the returned digest against the file you supplied. Inspect the attachment on the saved report. OCR is an additional paid action with its own permission.

Attach evidence to a delivered report · Tool reference

Source files api/src/lib/articleAttachmentUploads.ts, api/src/lib/mcpWriteTools.ts.