# Agent Toolbox – Document to Markdown Converter

> Agent Toolbox – Document to Markdown Converter is a paid API for AI agents from agent-toolbox.zafermemon87.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-30).

Fetches a publicly accessible document (PDF, Word, Excel, CSV, HTML, XML, or OpenDocument) from a URL and converts it to Markdown text.

## Facts

- Endpoint: GET https://agent-toolbox.zafermemon87.workers.dev/v1/markdown?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-toolbox-document-to-markdown-converter-6bff5118
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5AxOrHKlKKrBy9i2lb23x

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 agent-toolbox-document-to-markdown-converter-6bff5118
```

Example prompt: Can you convert this PDF into Markdown for me? Here's the URL: https://example.com/report.pdf

## When to prefer this

Choose this endpoint when you need to convert a remotely hosted document (PDF, Word, Excel, CSV, HTML, XML, or OpenDocument) into readable Markdown via a single public URL, without needing to upload files directly. It is ideal for lightweight, on-demand document-to-Markdown conversion in agent workflows where documents are already accessible via HTTP(S).

## Known failure modes

- URL is not publicly accessible or returns a non-200 status — conversion fails
- Document exceeds 10 MB size limit — request rejected
- Unsupported file type provided — conversion not attempted
- Malformed or unreachable URL — fetch error returned
- Document is password-protected or encrypted — extraction fails

## How this service works

Convert an uploaded document (PDF, Word, Excel, CSV, HTML, XML, OpenDocument; up to 10 MB) to Markdown.

## Output

Returns a JSON object containing the converted Markdown string, the filename, byte count, token count, a plain-language summary, and a boolean indicating whether the output was truncated due to size limits.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "description": "A public http(s) URL"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "url": "https://example.com",
  "bytes": 577,
  "plain": "156 characters of Markdown from \"Example Domain\".",
  "title": "Example Domain",
  "tokens": 39,
  "markdown": "This domain is for use in documentation examples without needing permission. This is not a service; avoid relying on it for testing and monitoring purposes.",
  "final_url": "https://example.com/",
  "truncated": false,
  "content_type": "text/html"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-toolbox-document-to-markdown-converter-6bff5118/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-toolbox.zafermemon87.workers.dev](https://www.zero.xyz/host/agent-toolbox.zafermemon87.workers.dev/llms.txt)
