# Tools

> Every MCP tool with its parameters. Content is GitHub-flavored Markdown.

Every tool except `list_sites` takes an optional `site` (id or slug), left out of the tables below. Post and page tools are mirrors of each other: `get_post` and `get_page`, `edit_post` and `edit_page`, and so on. Pages have no `featured` or `tags`.

Write tools only appear for tokens and keys with write access.

## Sites and tags

### list_sites

Sites this token can work on, with your role and write access on each. No parameters.

### get_site

The site's details and your access level on it: role and whether you can write.

### list_tags

Tags on the site, with how many posts use each.

## Reading content

### list_posts · list_pages

Most recently updated first.

| Parameter | Type | Description |
| --- | --- | --- |
| `status` | `draft` or `published` or `scheduled` or `all` | Defaults to `all` |
| `query` | string | Filter by title, case-insensitive |
| `tag` | string | Posts only. Tag name or slug |
| `limit` | number | 1 to 100. Default 20 |
| `offset` | number | For paging. Results are sorted by last update, newest first |

### get_post · get_page

The full Markdown content and the current `revision`.

| Parameter | Type | Description |
| --- | --- | --- |
| `id` | string | Id or slug |

If the content has blocks Markdown can't represent, the result includes a `warning`. See [Content format](#content-format).

## Writing content

### create_post · create_page

Saved as a draft unless `status` is set.

| Parameter | Type | Description |
| --- | --- | --- |
| `title` | string | Required |
| `content` | string | Required. Markdown body |
| `slug` | string | Defaults to one made from the title |
| `excerpt` | string | Short summary for listings |
| `status` | `draft` or `published` or `scheduled` | Default `draft`. `scheduled` needs a `publishedAt`; the item goes live within a minute of it. `published` with a future `publishedAt` schedules instead |
| `publishedAt` | string | ISO 8601 with an offset. Defaults to now when publishing. A time that has already passed publishes a `scheduled` item at once |
| `featureImage` | string | Image URL |
| `featureImageAlt` | string | Alt text |
| `featured` | boolean | Posts only. Pin to the top of the blog |
| `tags` | string[] | Posts only. Tag names; missing tags are created |

### update_post · update_page

Changes only the fields you pass. `content` replaces the whole body; use `edit_*` for small changes.

| Parameter | Type | Description |
| --- | --- | --- |
| `id` | string | Id or slug |
| `revision` | string | Required. From your latest read or write of this item |
| `title`, `content`, `slug`, `excerpt`, `status`, `publishedAt`, `featureImage`, `featureImageAlt`, `featured`, `tags` | | As in `create_*`. `tags` replaces all tags |
| `allowLossyRewrite` | boolean | Allow a rewrite that drops blocks Markdown can't represent |
| `confirm` | boolean | Confirms a [risky change](/docs/mcp/safety#confirming-risky-changes) to published content. Only after the user approves |

### edit_post · edit_page

Find-and-replace edits on the Markdown body, as returned by `get_*`. Edits apply in order, all or nothing.

| Parameter | Type | Description |
| --- | --- | --- |
| `id` | string | Id or slug |
| `revision` | string | Required |
| `edits` | array | At least one `{ find, replace, replaceAll? }` |
| `allowLossyRewrite` | boolean | As above |
| `confirm` | boolean | As above |

Each `find` must match exactly once, unless `replaceAll` is `true`. An empty `replace` deletes the text.

```json title="edit_post"
{
  "id": "launch-notes",
  "revision": "2026-10-13T09:12:44.120Z",
  "edits": [
    { "find": "We shipped", "replace": "Today we shipped" },
    { "find": "beta", "replace": "preview", "replaceAll": true }
  ]
}
```

## Revisions

### list_post_revisions · list_page_revisions

Earlier versions, newest first. Each is the state right before a change replaced it, with who made the change, through what (`mcp`, `dashboard`, `restore` or `schedule`), the title, slug, status and a content preview.

| Parameter | Type | Description |
| --- | --- | --- |
| `id` | string | Id or slug |
| `limit` | number | 1 to 50. Default 10 |
| `offset` | number | For paging |

### restore_post_revision · restore_page_revision

Puts the item back to an earlier version: title, slug, excerpt, status, publish date, feature image, tags and content. The current version is saved as a revision first, so a restore can be undone.

| Parameter | Type | Description |
| --- | --- | --- |
| `id` | string | Id or slug |
| `revisionId` | string | From `list_*_revisions` |
| `revision` | string | The item's current revision |
| `confirm` | boolean | Needed when restoring a published item would unpublish it, change its slug, gut its text or drop its tags |

## Trash

### trash_post · trash_page

Deletes an item by moving it to the trash. It disappears from the blog and from `list_*` / `get_*`, but nothing is lost: it keeps its content, tags, slug and revisions. Only people can delete trashed items for good, from the dashboard.

| Parameter | Type | Description |
| --- | --- | --- |
| `id` | string | Id or slug |
| `confirm` | boolean | Needed when the item is published, since trashing it takes it off the blog |

### restore_post_from_trash · restore_page_from_trash

Takes an item out of the trash with the status, slug and content it had. Find trashed items with `list_posts` / `list_pages` and `status: "trashed"`.

| Parameter | Type | Description |
| --- | --- | --- |
| `id` | string | Id or slug of the trashed item |

## Content format

Agents read and write GitHub-flavored Markdown: headings, emphasis, links, lists, block quotes, code blocks, tables, images and horizontal rules. Quillhive converts it to the same content the editor and blog use.

Images, galleries, link cards and YouTube videos from the editor come back as Markdown, so editing the text around them keeps them:

- An image is `![alt](src "caption")`. Its width setting (normal, wide or full) is kept as long as the `src` stays the same, or when you only swap image URLs (for example to re-host them) without adding or removing images. New images use normal width.
- A gallery is a list of images between two comment lines. The first names the gallery width: `normal`, `wide` or `full`.
- A link card is its link between two comment lines, with the card's title as the link text. Quillhive fills in its description and preview image: from the post's excerpt and feature image for a link to a post on the same site (`/post/<slug>/<id>`), otherwise from the page's `og:description` and `og:image`. They are kept as long as the URL stays the same.
- A YouTube video is its URL between two comment lines. Any YouTube video link works (`youtu.be`, watch, shorts or playlist). Its start time and size are kept as long as it's the same video.

```md
<!-- gallery wide -->
![First photo](https://example.com/1.jpg)
![Second photo](https://example.com/2.jpg)
<!-- /gallery -->

<!-- link-card -->
[Card title](https://example.com/page)
<!-- /link-card -->

<!-- youtube -->
https://www.youtube.com/watch?v=dQw4w9WgXcQ
<!-- /youtube -->
```

Links are `[text](url)` or `<url>`. A bare URL or email address in the text stays plain text and is never turned into a link. New links open in the same window. Editing the text around a link keeps its "open in new window" setting as long as the URL stays the same. Links to your own site are never marked `nofollow`, so search engines follow them between your pages.

Strikethrough is `~~text~~`. A single `~` is always literal, so prices like "(~$5)" are safe to write as they are. Underline is `<u>text</u>`.

Text from the editor comes back escaped where Markdown would otherwise read it as markup, for example `\<br>` for the literal text "<br>" and `\&amp;` for "&amp;". Keep the backslashes when editing nearby text.

Tables with a single header row and one line of text per cell are Markdown tables. A line break in a cell is `<br>` and a `|` in a cell is `\|`. Tables with merged cells, a header column, or lists or several paragraphs in a cell come back as HTML so nothing is lost; edit the text inside it and leave the tags as they are. Column widths are kept as long as the table keeps the same columns.

Some editor blocks have no Markdown form: X embeds, math and highlights. When a post has them:

- `get_*` returns a `warning`.
- Rewriting the content (`update_*` with `content`, or `edit_*`) is refused, so those blocks aren't dropped by accident.
- Changing only metadata (title, tags, status…) still works.
- Pass `allowLossyRewrite: true` when removing them is intended.
