# smart_edit: Edit a PDF by instruction

Describe the change ("remove the blank pages, number the rest and make it PDF/A"): FynePDF plans the steps from its actions, checks the plan, and runs it. With run false it only returns the plan.

A tool of the [FynePDF MCP server](https://fynepdf.com/developers/docs/mcp) (`https://api.fynepdf.com/mcp`). Makes a new file; the original is kept.

## Ask for it

- "Remove the blank pages and add page numbers."
- "Fix the typo in the heading on page 1."

## Inputs

| Input | Type | Required | What it does |
|---|---|---|---|
| `file_id` | string |  | A FynePDF file_id from upload_file, import_file_from_url or an earlier tool. |
| `file` | object |  | A file the person attached in ChatGPT (filled in by ChatGPT). |
| `file_url` | string |  | A public link to the file. |
| `library_file_id` | string |  | A file from the person's FynePDF Library (from list_library_files). |
| `instruction` | string | yes |  |
| `run` | boolean |  | Default true. |

## The same over HTTP

From your own code, call [Edit a PDF by instruction](https://fynepdf.com/developers/docs/api/edit-pdf).

## Connect it

[Claude](https://fynepdf.com/developers/docs/mcp/claude) · [ChatGPT](https://fynepdf.com/developers/docs/mcp/chatgpt) · [Cursor](https://fynepdf.com/developers/docs/mcp/cursor) · [VS Code](https://fynepdf.com/developers/docs/mcp/vscode) · [Claude Code](https://fynepdf.com/developers/docs/mcp/claude-code)


---

Open this page in a browser: https://fynepdf.com/developers/docs/mcp/tools/smart_edit

More: [All tools](https://fynepdf.com/tools) · [AI agents](https://fynepdf.com/ai/agents) · [llms.txt](https://fynepdf.com/llms.txt) · [Sitemap](https://fynepdf.com/sitemap.xml)
