# WritersLogic Attachment Reference Validator

> WritersLogic Attachment Reference Validator is a paid API for AI agents from agents.writerslogic.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-19).

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.

## Facts

- Endpoint: POST https://agents.writerslogic.com/api/v1/attachment-references?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/writerslogic-attachment-reference-validator-c8d4ee71
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_hAUKTj_oK0Wp5tfs903x8

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability writerslogic-attachment-reference-validator-c8d4ee71 -d '<json body>'
```

Example prompt: 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.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/writerslogic-attachment-reference-validator-c8d4ee71/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.writerslogic.com](https://www.zero.xyz/host/agents.writerslogic.com/llms.txt)
