Archive Posts
archive_postsArchives many posts in one call, by post_ids (up to 50) or by criteria that select stale drafts (for example drafts older than 14 days with no proposed time). Dry run is the default: the call returns would_archive and a sample and changes nothing; dry_run: false archives. Published posts and posts being published are never archived. Archiving is not a delete: the post stays in the dashboard under Archived, where the founder can restore it to drafts. Archived posts are left out of calendar and search results unless a status filter asks for them. only_status: "draft" with post_ids archives only posts that are still drafts.
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": "archive_posts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Criteria only: the most posts this call archives (default 50, max 100). The oldest drafts go first. | |
| dry_run | No | Default true: the call reports what would be archived and changes nothing. false archives the posts. | |
| criteria | No | Selects drafts by shape instead of naming ids. Sent instead of post_ids, never with it. | |
| post_ids | No | Posts to archive, up to 50. Sent instead of criteria, never with it. | |
| only_status | No | post_ids only: a post is archived only while it is still a draft. A post approved or scheduled since is skipped as changed. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| sample | Yes | ||
| dry_run | Yes | ||
| matched | Yes | ||
| skipped | Yes | ||
| archived | No | ||
| has_more | Yes | ||
| post_ids | Yes | ||
| recovery_hint | No | ||
| would_archive | No |