Content inventory
content_inventoryExport WordPress content as JSON or CSV with detailed per-item fields such as status, author, word count, and SEO metadata. Supports field selection and cursor pagination for audits, migrations, and spreadsheets.
Instructions
Export a content inventory — one row per item with id, type, status, URL, title, word count, published and modified dates, author name, term names, whether it has a featured image, and the SEO title/description when Yoast exposes them. JSON or CSV, with field selection and cursor pagination, for content audits, migrations and spreadsheets.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "content_inventory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| types | No | Content types to include, in order. | |
| cursor | No | next_cursor from the previous call, to fetch the next rows. | |
| fields | No | Columns to include, in order. Omit for all. Leaving out words, terms and author makes each page cheaper to build. | |
| format | No | json rows, or a CSV document with a header row. | json |
| status | No | Status filter: publish, draft, pending, private, future, or "any". | publish |
| site_id | No | Which configured WordPress site to act on. Optional — with a single site configured it is used automatically; with several, the default site is used unless you name one. Run list_sites for valid ids. | |
| per_page | No | Rows per call. |