Tools / web.pdf

Webpage to PDF

web.pdf

Prints a public URL, or HTML you supply, to an A4 or Letter PDF using a headless browser.

WebLaunch set5 units per callnot cachedMCP: web_pdfv1.0.0

When to use it

Use to produce a printable PDF of a page, or of HTML the agent has written. Renders JavaScript and CSS like a browser print. Output up to 1 MB is returned inline.

Input

FieldTypeDescription
urlstring (≤ 2048 chars)Public page to print. Use instead of html.
htmlstring (≤ 500000 chars)Raw HTML to print. Use instead of url.
formatone of A4, LetterDefault: "A4".
print_backgroundbooleanDefault: true.

Output

Returns data with: format, content_type, bytes, data_base64.

Request

curl -X POST https://agentops.tools/v1/web.pdf \
  -H 'content-type: application/json' \
  -d '{"html":"<h1>Invoice 42</h1><p>Total: $120</p>","format":"A4"}'

Over MCP the tool is named web_pdf. Over A2A its skill id is web.pdf. Same input, same envelope.

Try it

Counts against your rate limit.

Sources

Notes

  • Rendered by a real browser on our compute; costs five rate-limit units per call.