{"uid":"cap_hAUKTj_oK0Wp5tfs903x8","slug":"writerslogic-attachment-reference-validator-c8d4ee71","name":"WritersLogic Attachment Reference Validator","description":"Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.","url":"https://agents.writerslogic.com/api/v1/attachment-references?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","maxLength":20000,"minLength":1,"description":"Message body."},"attachments":{"type":"array","items":{"type":"object","required":["name"],"properties":{"name":{"type":"string","maxLength":260,"minLength":1,"description":"File name."},"bytes":{"type":"integer","maximum":10000000000,"minimum":0},"mimeType":{"type":"string","maxLength":120}},"additionalProperties":false},"maxItems":50,"description":"The attachments actually present; may be empty."}}},"responseSchema":{"type":"json"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_h_CPhkM0ceNIACcIq65k-","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Checks whether a message's text references to attachments (by name, type, or count) match the actual list of attached files, and identifies unmentioned attachments.","exampleAgentPrompt":"Before I send this email, check whether my message text properly matches my attachments — the body says 'please see the attached report.pdf and the two spreadsheets' and I've actually attached: report.pdf, budget_2024.xlsx.","exampleUseCases":[{"title":"Email pre-send attachment check","prompt":"I'm about to send an email that says 'Please find attached the signed contract and invoice' but I want to make sure I didn't forget to actually attach both files — my attachments are contract_signed.pdf and invoice_march.pdf. Can you check if the message and attachments match up?"},{"title":"Catch phantom file name reference","prompt":"My draft message says 'I've attached the Q3_results.pdf for your review' but I'm not 100% sure I included that file. My actual attachments are quarterly_summary.xlsx and notes.txt. Can you check whether the file I mentioned in the text is actually in my attachment list?"},{"title":"Validate count mismatch in outgoing message","prompt":"I wrote 'enclosed are three documents for your records' in my message, but I want to verify that I really attached exactly three files before hitting send — the attachments I have are proposal.pdf and timeline.docx. Flag any discrepancies between what I said and what I actually attached."}],"resultDescription":"Returns a list of detected mismatches (e.g. a named file not found in the attachment list, a generic type reference with no matching extension/MIME, a count that doesn't match, or 'see attached' with no attachments), plus a list of attachments that the text never references. For every text mention, provides character offsets in UTF-16, Unicode code points, UTF-8 bytes, and grapheme units. Negated mentions (e.g. 'forgot to attach') are excluded from mismatch detection.","failureModes":["Text is not in English — the service is English-only and may miss or misidentify references in other languages","Attachment list is empty when no attachments were actually sent — may produce false positives for 'see attached' idioms","File names with unusual Unicode characters may cause offset discrepancies if the caller's encoding assumptions differ","Ambiguous generic references (e.g. 'the document') may not be matched to a specific file type, producing false negatives","File count references using non-standard numerals or words may not be parsed correctly","Cannot verify that a file's actual contents match its name — only checks name/type against the text reference"],"whenToPreferThis":"Use this endpoint when you need rule-based, deterministic verification that a message's textual attachment references are consistent with the actual attachment list — especially before sending emails, messages, or documents. It is ideal when you need precise character offsets for mismatches (in multiple encoding formats), want to catch 'forgot to attach' errors programmatically, or need to audit outbound agent-composed messages for attachment consistency. It does not open or read file contents, so it is safe for privacy-sensitive workflows. Prefer this over LLM-based checks when you need deterministic, auditable, low-latency results with exact offset positions.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T06:39:03.359Z","isFirstParty":false,"canonicalSlug":"writerslogic-attachment-reference-validator-c8d4ee71"}