Count posts
wp_count_postsCount posts by status (published, draft, scheduled, pending, private, trash) for one post type. The default post type is post.
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": "wp_count_posts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| post_type | No |