io.github.zp130221/pdfedit-mcp is an MCP server published by io.github.zp130221, hosted at pdfedit-mcp-remote.niubai-pdfedit-remote-worker.workers.dev. When last checked on 2026-11-23 it was working: it answers and lists its tools. It declares 5 tools, including pdf_edit, pdf_batch, pdf_find, pdf_preview, pdf_job.
Edit text inside existing PDFs: replace, delete, redact, insert, fill forms; original fonts kept.
Nothing else in the archive shares these values.
Edit an existing PDF in place: replace, delete, redact or insert text, fill form fields, stamp an image (a signature, a chop) into a box or remove one, keeping the original layout, fonts and everything you did not point at. `edits[]` is taken exactly as the API takes it (`op`, `scope`, `match`, `fit`), and the result carries up to 3 before/after previews of the pages that changed. To change text on one page only, set `scope.pages`; to pick one of several identical matches, use `scope.after` with nearby text or `scope.occurrence`. Use `op: 'redact'` when the text must be unrecoverable.
| Parameter | Type | Description |
|---|---|---|
| file * | string | The PDF: an absolute (or ~) local path, which this server uploads for you, an https:// URL the API fetches, or an `f_…` file id from an earlier call. |
| edits * | array | The edits to apply, in order, exactly as `POST /v1/edit` takes them. |
| options | object |
None yet. Changes appear after a server's second daily check.
Squares are this server's values; dots are other servers sharing them. A shared address or publisher is a lead, not proof of a common operator.
Inferred from the host name and headers: what a server runs on, not who runs it.
| password | string | The document open password, when it has one. |
| output_path | string | Where to write the edited PDF (stdio mode only). Default: `<name>.edited.pdf` next to the input, or `<name>.edited.2.pdf`, `.3.pdf`, ... when that exists; an earlier result is never overwritten. |
{
"name": "pdf_edit",
"title": "Edit a PDF",
"description": "Edit an existing PDF in place: replace, delete, redact or insert text, fill form fields, stamp an image (a signature, a chop) into a box or remove one, keeping the original layout, fonts and everything you did not point at. `edits[]` is taken exactly as the API takes it (`op`, `scope`, `match`, `fit`), and the result carries up to 3 before/after previews of the pages that changed. To change text on one page only, set `scope.pages`; to pick one of several identical matches, use `scope.after` with nearby text or `scope.occurrence`. Use `op: 'redact'` when the text must be unrecoverable.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"file",
"edits"
],
"properties": {
"file": {
"type": "string",
"minLength": 1,
"description": "The PDF: an absolute (or ~) local path, which this server uploads for you, an https:// URL the API fetches, or an `f_…` file id from an earlier call."
},
"edits": {
"type": "array",
"items": {
"type": "object",
"properties": {
"at": {
"anyOf": [
{
"type": "object",
"required": [
"page"
],
"properties": {
"x": {
"type": [
"number",
"null"
],
"description": "Baseline origin x. Points from the page's left edge, or a fraction of the page width when units='fraction'."
},
"y": {
"type": [
"number",
"null"
],
"description": "Baseline origin y: where the first line sits, measured from the page's TOP edge (PDF viewer convention, as every bbox and span origin in this API). A fraction of the page height when units='fraction'."
},
"page": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 1
},
"after": {
"type": [
"string",
"null"
],
"description": "Anchor text to insert after; the first occurrence on the page wins, and the style is inherited from it."
},
"units": {
"enum": [
"pt",
"fraction"
],
"type": "string",
"description": "(default: \"pt\")"
},
"over_text": {
"type": "boolean",
"description": "With x/y: write there even if the page already has text at that point. Off, an insert that would land on or run into existing text is refused (`occupied`), because a caller who cannot see the page would ruin the very line they meant to fix. On, for a position chosen on a rendered page -- a label dragged next to another -- the text is written as asked. (default: false)"
},
"placement": {
"enum": [
"inline",
"below"
],
"type": "string",
"description": "With `after`: 'inline' writes one space past the anchor's right edge on its own baseline; 'below' writes at the anchor line's left edge, one leading down. (default: \"inline\")"
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"by": {
"anyOf": [
{
"type": "object",
"properties": {
"dx": {
"type": "number",
"description": "(default: 0)"
},
"dy": {
"type": "number",
"description": "(default: 0)"
}
},
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "`move` only: the displacement. The phrase's own glyphs are drawn again that far away -- same font, size and weight -- and the rest of its line stays where it was."
},
"op": {
"enum": [
"replace",
"delete",
"redact",
"insert",
"form",
"stamp",
"remove_image",
"move"
],
"type": "string",
"description": "(default: \"replace\")"
},
"box": {
"anyOf": [
{
"type": "object",
"required": [
"h",
"page",
"w",
"x",
"y"
],
"properties": {
"h": {
"type": "number",
"maximum": 14400,
"description": "Height in points."
},
"w": {
"type": "number",
"maximum": 14400,
"description": "Width in points."
},
"x": {
"type": "number",
"minimum": 0,
"description": "Left edge, points from the page's left."
},
"y": {
"type": "number",
"minimum": 0,
"description": "Top edge, points from the page's TOP."
},
"page": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 1
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"fit": {
"enum": [
"auto",
"reflow",
"strict"
],
"type": "string",
"description": "(default: \"auto\")"
},
"find": {
"type": [
"string",
"null"
]
},
"text": {
"type": [
"string",
"null"
]
},
"image": {
"type": [
"string",
"null"
],
"description": "The image to place: PNG, JPEG, GIF, BMP or WebP, as base64 (a `data:` URL is accepted). JPEG is stored as sent; PNG keeps its transparency."
},
"match": {
"type": "object",
"properties": {
"mode": {
"enum": [
"exact",
"icase",
"word",
"regex"
],
"type": "string",
"description": "(default: \"exact\")"
},
"normalize": {
"type": "boolean",
"description": "(default: true)"
},
"across_lines": {
"type": "boolean",
"description": "(default: false)"
}
},
"additionalProperties": false
},
"scope": {
"type": "object",
"properties": {
"after": {
"anyOf": [
{
"type": "string",
"minLength": 1
},
{
"type": "null"
}
]
},
"pages": {
"anyOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991
}
}
],
"description": "(default: \"all\")"
},
"before": {
"anyOf": [
{
"type": "string",
"minLength": 1
},
{
"type": "null"
}
]
},
"layers": {
"type": "array",
"items": {
"enum": [
"content",
"forms",
"annotations"
],
"type": "string"
},
"description": "Page layers to match in. All three are implemented; a match on the 'forms' layer is applied to the field's value, not to the page."
},
"region": {
"anyOf": [
{
"type": "object",
"required": [
"x0",
"x1",
"y0",
"y1"
],
"properties": {
"x0": {
"type": "number"
},
"x1": {
"type": "number"
},
"y0": {
"type": "number"
},
"y1": {
"type": "number"
},
"units": {
"enum": [
"fraction",
"pt"
],
"type": "string",
"description": "(default: \"fraction\")"
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"span_ids": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "null"
}
]
},
"occurrence": {
"anyOf": [
{
"enum": [
"all",
"first",
"last"
],
"type": "string"
},
{
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991
}
],
"description": "(default: \"all\")"
},
"page_labels": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
},
"style": {
"anyOf": [
{
"type": "object",
"properties": {
"font": {
"type": [
"string",
"null"
]
},
"size": {
"anyOf": [
{
"type": "number",
"maximum": 200,
"minimum": 1
},
{
"type": "null"
}
]
},
"color": {
"anyOf": [
{
"type": "string",
"pattern": "^#[0-9a-fA-F]{6}$"
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"fields": {
"anyOf": [
{
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
{
"type": "null"
}
]
},
"flatten": {
"type": "boolean",
"description": "(default: false)"
},
"replace": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
},
"maxItems": 200,
"minItems": 1,
"description": "The edits to apply, in order, exactly as `POST /v1/edit` takes them."
},
"options": {
"type": "object",
"properties": {
"ocr": {
"enum": [
"auto",
"on",
"off"
],
"type": "string",
"description": "(default: \"auto\")"
},
"font": {
"type": "object",
"properties": {
"policy": {
"enum": [
"auto",
"metric_only",
"exact_only"
],
"type": "string",
"description": "(default: \"auto\")"
}
},
"additionalProperties": false
},
"tidy": {
"type": "boolean",
"description": "(default: true)"
},
"async": {
"type": "boolean",
"description": "(default: false)"
},
"atomic": {
"type": "boolean",
"description": "(default: true)"
},
"retain": {
"type": "boolean",
"description": "(default: true)"
},
"strict": {
"type": "boolean",
"description": "(default: false)"
},
"dry_run": {
"type": "boolean",
"description": "(default: false)"
},
"preview": {
"enum": [
"changes",
"pages",
"none"
],
"type": "string",
"description": "(default: \"changes\")"
},
"ocr_lang": {
"type": "array",
"items": {
"enum": [
"zh",
"en"
],
"type": "string"
}
},
"watermark": {
"enum": [
"auto",
"on",
"off"
],
"type": "string",
"description": "(default: \"auto\")"
},
"webhook_url": {
"anyOf": [
{
"type": "string",
"format": "uri",
"maxLength": 2083,
"minLength": 1
},
{
"type": "null"
}
],
"description": "Called with POST when the job finishes: the body is the job's result (what GET /v1/jobs/{id} returns) plus `event` (job.done, job.failed, batch.done ...) and `job_id`, signed in `X-Signature` (hex HMAC-SHA256 of the raw body with the account's webhook secret). Non-2xx answers are retried after 1, 5 and 30 minutes. https only."
},
"redact_style": {
"enum": [
"box",
"text"
],
"type": "string",
"description": "(default: \"box\")"
},
"break_signature": {
"type": "boolean",
"description": "(default: false)"
},
"redact_metadata": {
"type": "boolean",
"description": "(default: false)"
},
"redact_verify_ocr": {
"type": "boolean",
"description": "(default: true)"
},
"collateral_threshold": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "(default: 8)"
}
},
"additionalProperties": false
},
"password": {
"type": "string",
"description": "The document open password, when it has one."
},
"output_path": {
"type": "string",
"description": "Where to write the edited PDF (stdio mode only). Default: `<name>.edited.pdf` next to the input, or `<name>.edited.2.pdf`, `.3.pdf`, ... when that exists; an earlier result is never overwritten."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}Apply the same edits to one template PDF once per record, producing one output document per record — a mail merge over an existing PDF. Returns a `job_id`: call `pdf_job` with it for the per-record results. To change text on one page only, set `scope.pages`; to pick one of several identical matches, use `scope.after` with nearby text or `scope.occurrence`. Use `op: 'redact'` when the text must be unrecoverable.
| Parameter | Type | Description |
|---|---|---|
| file * | string | The PDF: an absolute (or ~) local path, which this server uploads for you, an https:// URL the API fetches, or an `f_…` file id from an earlier call. Used as the template for every record. |
| edits * | array | The edits applied to each record, with `{field}` placeholders filled from it. |
| options | object | |
| records | array | One object per output document. |
| password | string | |
| records_url | string | A CSV or JSONL file of records, instead of `records`. |
{
"name": "pdf_batch",
"title": "Batch-edit a PDF template",
"description": "Apply the same edits to one template PDF once per record, producing one output document per record — a mail merge over an existing PDF. Returns a `job_id`: call `pdf_job` with it for the per-record results. To change text on one page only, set `scope.pages`; to pick one of several identical matches, use `scope.after` with nearby text or `scope.occurrence`. Use `op: 'redact'` when the text must be unrecoverable.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"file",
"edits"
],
"properties": {
"file": {
"type": "string",
"minLength": 1,
"description": "The PDF: an absolute (or ~) local path, which this server uploads for you, an https:// URL the API fetches, or an `f_…` file id from an earlier call. Used as the template for every record."
},
"edits": {
"type": "array",
"items": {
"type": "object",
"properties": {
"at": {
"anyOf": [
{
"type": "object",
"required": [
"page"
],
"properties": {
"x": {
"type": [
"number",
"null"
],
"description": "Baseline origin x. Points from the page's left edge, or a fraction of the page width when units='fraction'."
},
"y": {
"type": [
"number",
"null"
],
"description": "Baseline origin y: where the first line sits, measured from the page's TOP edge (PDF viewer convention, as every bbox and span origin in this API). A fraction of the page height when units='fraction'."
},
"page": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 1
},
"after": {
"type": [
"string",
"null"
],
"description": "Anchor text to insert after; the first occurrence on the page wins, and the style is inherited from it."
},
"units": {
"enum": [
"pt",
"fraction"
],
"type": "string",
"description": "(default: \"pt\")"
},
"over_text": {
"type": "boolean",
"description": "With x/y: write there even if the page already has text at that point. Off, an insert that would land on or run into existing text is refused (`occupied`), because a caller who cannot see the page would ruin the very line they meant to fix. On, for a position chosen on a rendered page -- a label dragged next to another -- the text is written as asked. (default: false)"
},
"placement": {
"enum": [
"inline",
"below"
],
"type": "string",
"description": "With `after`: 'inline' writes one space past the anchor's right edge on its own baseline; 'below' writes at the anchor line's left edge, one leading down. (default: \"inline\")"
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"by": {
"anyOf": [
{
"type": "object",
"properties": {
"dx": {
"type": "number",
"description": "(default: 0)"
},
"dy": {
"type": "number",
"description": "(default: 0)"
}
},
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "`move` only: the displacement. The phrase's own glyphs are drawn again that far away -- same font, size and weight -- and the rest of its line stays where it was."
},
"op": {
"enum": [
"replace",
"delete",
"redact",
"insert",
"form",
"stamp",
"remove_image",
"move"
],
"type": "string",
"description": "(default: \"replace\")"
},
"box": {
"anyOf": [
{
"type": "object",
"required": [
"h",
"page",
"w",
"x",
"y"
],
"properties": {
"h": {
"type": "number",
"maximum": 14400,
"description": "Height in points."
},
"w": {
"type": "number",
"maximum": 14400,
"description": "Width in points."
},
"x": {
"type": "number",
"minimum": 0,
"description": "Left edge, points from the page's left."
},
"y": {
"type": "number",
"minimum": 0,
"description": "Top edge, points from the page's TOP."
},
"page": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 1
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"fit": {
"enum": [
"auto",
"reflow",
"strict"
],
"type": "string",
"description": "(default: \"auto\")"
},
"find": {
"type": [
"string",
"null"
]
},
"text": {
"type": [
"string",
"null"
]
},
"image": {
"type": [
"string",
"null"
],
"description": "The image to place: PNG, JPEG, GIF, BMP or WebP, as base64 (a `data:` URL is accepted). JPEG is stored as sent; PNG keeps its transparency."
},
"match": {
"type": "object",
"properties": {
"mode": {
"enum": [
"exact",
"icase",
"word",
"regex"
],
"type": "string",
"description": "(default: \"exact\")"
},
"normalize": {
"type": "boolean",
"description": "(default: true)"
},
"across_lines": {
"type": "boolean",
"description": "(default: false)"
}
},
"additionalProperties": false
},
"scope": {
"type": "object",
"properties": {
"after": {
"anyOf": [
{
"type": "string",
"minLength": 1
},
{
"type": "null"
}
]
},
"pages": {
"anyOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991
}
}
],
"description": "(default: \"all\")"
},
"before": {
"anyOf": [
{
"type": "string",
"minLength": 1
},
{
"type": "null"
}
]
},
"layers": {
"type": "array",
"items": {
"enum": [
"content",
"forms",
"annotations"
],
"type": "string"
},
"description": "Page layers to match in. All three are implemented; a match on the 'forms' layer is applied to the field's value, not to the page."
},
"region": {
"anyOf": [
{
"type": "object",
"required": [
"x0",
"x1",
"y0",
"y1"
],
"properties": {
"x0": {
"type": "number"
},
"x1": {
"type": "number"
},
"y0": {
"type": "number"
},
"y1": {
"type": "number"
},
"units": {
"enum": [
"fraction",
"pt"
],
"type": "string",
"description": "(default: \"fraction\")"
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"span_ids": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "null"
}
]
},
"occurrence": {
"anyOf": [
{
"enum": [
"all",
"first",
"last"
],
"type": "string"
},
{
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991
}
],
"description": "(default: \"all\")"
},
"page_labels": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
},
"style": {
"anyOf": [
{
"type": "object",
"properties": {
"font": {
"type": [
"string",
"null"
]
},
"size": {
"anyOf": [
{
"type": "number",
"maximum": 200,
"minimum": 1
},
{
"type": "null"
}
]
},
"color": {
"anyOf": [
{
"type": "string",
"pattern": "^#[0-9a-fA-F]{6}$"
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"fields": {
"anyOf": [
{
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
{
"type": "null"
}
]
},
"flatten": {
"type": "boolean",
"description": "(default: false)"
},
"replace": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
},
"maxItems": 200,
"minItems": 1,
"description": "The edits applied to each record, with `{field}` placeholders filled from it."
},
"options": {
"type": "object",
"properties": {
"ocr": {
"enum": [
"auto",
"on",
"off"
],
"type": "string",
"description": "(default: \"auto\")"
},
"font": {
"type": "object",
"properties": {
"policy": {
"enum": [
"auto",
"metric_only",
"exact_only"
],
"type": "string",
"description": "(default: \"auto\")"
}
},
"additionalProperties": false
},
"tidy": {
"type": "boolean",
"description": "(default: true)"
},
"async": {
"type": "boolean",
"description": "(default: false)"
},
"atomic": {
"type": "boolean",
"description": "(default: true)"
},
"output": {
"enum": [
"zip",
"files"
],
"type": "string",
"description": "(default: \"files\")"
},
"retain": {
"type": "boolean",
"description": "(default: true)"
},
"strict": {
"type": "boolean",
"description": "(default: false)"
},
"dry_run": {
"type": "boolean",
"description": "(default: false)"
},
"preview": {
"enum": [
"changes",
"pages",
"none"
],
"type": "string",
"description": "(default: \"changes\")"
},
"filename": {
"type": [
"string",
"null"
]
},
"ocr_lang": {
"type": "array",
"items": {
"enum": [
"zh",
"en"
],
"type": "string"
}
},
"fail_fast": {
"type": "boolean",
"description": "(default: false)"
},
"watermark": {
"enum": [
"auto",
"on",
"off"
],
"type": "string",
"description": "(default: \"auto\")"
},
"webhook_url": {
"anyOf": [
{
"type": "string",
"format": "uri",
"maxLength": 2083,
"minLength": 1
},
{
"type": "null"
}
],
"description": "Called with POST when the job finishes: the body is the job's result (what GET /v1/jobs/{id} returns) plus `event` (job.done, job.failed, batch.done ...) and `job_id`, signed in `X-Signature` (hex HMAC-SHA256 of the raw body with the account's webhook secret). Non-2xx answers are retried after 1, 5 and 30 minutes. https only."
},
"redact_style": {
"enum": [
"box",
"text"
],
"type": "string",
"description": "(default: \"box\")"
},
"break_signature": {
"type": "boolean",
"description": "(default: false)"
},
"redact_metadata": {
"type": "boolean",
"description": "(default: false)"
},
"redact_verify_ocr": {
"type": "boolean",
"description": "(default: true)"
},
"collateral_threshold": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "(default: 8)"
}
},
"additionalProperties": false
},
"records": {
"type": "array",
"items": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"description": "One object per output document."
},
"password": {
"type": "string"
},
"records_url": {
"type": "string",
"format": "uri",
"description": "A CSV or JSONL file of records, instead of `records`."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}Read the text of a PDF: every span with its page, position, font and span id, optionally filtered by `query` (the same four `match` modes an edit uses) and `pages`, over the `content`, `forms` and `annotations` layers. Paginated: pass the returned `next_cursor` back as `cursor` for the next page. Use it before `pdf_edit` to check what a document actually says and to pick the `scope` that selects the match you mean.
| Parameter | Type | Description |
|---|---|---|
| ocr | string | Also read pages by recognition: 'auto' for pages with no text layer, 'on' for every page named. Limited to 3 pages per request; the rows carry `is_ocr` and `confidence`, and their ids (`p1o3`) are not editable by `span_ids` -- edit them with `find` plus `scope.region` and `options.ocr`. (default: "o… |
| file * | string | The PDF: an absolute (or ~) local path, which this server uploads for you, an https:// URL the API fetches, or an `f_…` file id from an earlier call. |
| limit | integer | (default: 200) |
| match | object | |
| pages | any | |
| query | ["string","null"] | |
| cursor | ["string","null"] | |
| images | boolean | Also list the images each page draws (`images[]`: page, name, bbox, pixels) -- what `op: remove_image` takes a box from. (default: false) |
| layers | array | |
| password | string |
{
"name": "pdf_find",
"title": "Read the text of a PDF",
"description": "Read the text of a PDF: every span with its page, position, font and span id, optionally filtered by `query` (the same four `match` modes an edit uses) and `pages`, over the `content`, `forms` and `annotations` layers. Paginated: pass the returned `next_cursor` back as `cursor` for the next page. Use it before `pdf_edit` to check what a document actually says and to pick the `scope` that selects the match you mean.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"file"
],
"properties": {
"ocr": {
"enum": [
"off",
"auto",
"on"
],
"type": "string",
"description": "Also read pages by recognition: 'auto' for pages with no text layer, 'on' for every page named. Limited to 3 pages per request; the rows carry `is_ocr` and `confidence`, and their ids (`p1o3`) are not editable by `span_ids` -- edit them with `find` plus `scope.region` and `options.ocr`. (default: \"off\")"
},
"file": {
"type": "string",
"minLength": 1,
"description": "The PDF: an absolute (or ~) local path, which this server uploads for you, an https:// URL the API fetches, or an `f_…` file id from an earlier call."
},
"limit": {
"type": "integer",
"maximum": 1000,
"minimum": 1,
"description": "(default: 200)"
},
"match": {
"type": "object",
"properties": {
"mode": {
"enum": [
"exact",
"icase",
"word",
"regex"
],
"type": "string",
"description": "(default: \"exact\")"
},
"normalize": {
"type": "boolean",
"description": "(default: true)"
},
"across_lines": {
"type": "boolean",
"description": "(default: false)"
}
},
"additionalProperties": false
},
"pages": {
"anyOf": [
{
"anyOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991
}
}
]
},
{
"type": "null"
}
]
},
"query": {
"type": [
"string",
"null"
]
},
"cursor": {
"type": [
"string",
"null"
]
},
"images": {
"type": "boolean",
"description": "Also list the images each page draws (`images[]`: page, name, bbox, pixels) -- what `op: remove_image` takes a box from. (default: false)"
},
"layers": {
"type": "array",
"items": {
"enum": [
"content",
"forms",
"annotations"
],
"type": "string"
},
"minItems": 1
},
"password": {
"type": "string"
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}Render one page of a PDF as a PNG image block, optionally cropped to `region` and with rectangles drawn over `highlight`. Use it to see a page before editing it, or to check the result afterwards.
| Parameter | Type | Description |
|---|---|---|
| file * | string | The PDF: an absolute (or ~) local path, which this server uploads for you, an https:// URL the API fetches, or an `f_…` file id from an earlier call. |
| page | integer | (default: 1) |
| scale | number | Pixels per point, 0.25 to 3 (fractions allowed); the scale actually used is in X-Preview-Scale. (default: 2) |
| format | string | Image encoding: 'png' (lossless) or 'jpeg' (keeps the asked-for scale on busy pages; the response is image/jpeg). (default: "png") |
| region | any | |
| password | string | |
| highlight | any |
{
"name": "pdf_preview",
"title": "Render a PDF page",
"description": "Render one page of a PDF as a PNG image block, optionally cropped to `region` and with rectangles drawn over `highlight`. Use it to see a page before editing it, or to check the result afterwards.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"file"
],
"properties": {
"file": {
"type": "string",
"minLength": 1,
"description": "The PDF: an absolute (or ~) local path, which this server uploads for you, an https:// URL the API fetches, or an `f_…` file id from an earlier call."
},
"page": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 1,
"description": "(default: 1)"
},
"scale": {
"type": "number",
"maximum": 3,
"minimum": 0.25,
"description": "Pixels per point, 0.25 to 3 (fractions allowed); the scale actually used is in X-Preview-Scale. (default: 2)"
},
"format": {
"enum": [
"png",
"jpeg"
],
"type": "string",
"description": "Image encoding: 'png' (lossless) or 'jpeg' (keeps the asked-for scale on busy pages; the response is image/jpeg). (default: \"png\")"
},
"region": {
"anyOf": [
{
"type": "array",
"items": {
"type": "number"
},
"maxItems": 4,
"minItems": 4
},
{
"type": "null"
}
]
},
"password": {
"type": "string"
},
"highlight": {
"anyOf": [
{
"type": "array",
"items": {
"type": "array",
"items": {
"type": "number"
}
},
"maxItems": 200
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}The result of an async edit or a batch, by `job_id`: the same body `pdf_edit` returns once the job is done, plus `progress` while it is still queued or running, and `records` for a batch.
| Parameter | Type | Description |
|---|---|---|
| job_id * | string | The `job_id` an async edit or a batch returned. |
| output_path | string | Where to write the finished document (stdio mode, single-document jobs only). |
{
"name": "pdf_job",
"title": "Job result",
"description": "The result of an async edit or a batch, by `job_id`: the same body `pdf_edit` returns once the job is done, plus `progress` while it is still queued or running, and `records` for a batch.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"job_id"
],
"properties": {
"job_id": {
"type": "string",
"minLength": 1,
"description": "The `job_id` an async edit or a batch returned."
},
"output_path": {
"type": "string",
"description": "Where to write the finished document (stdio mode, single-document jobs only)."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}Names, descriptions and schemas were written by the server and are shown as data.