fetch_posts_by_category
Retrieve posts from a WordPress site filtered by category name. Supports pagination to navigate through results.
Instructions
Fetch posts by category name provided from a WordPress site. Args: category (str): The category name to filter posts by. page (int): The page number to fetch. Returns: dict[str, Any]: The response from the WordPress API.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"category": "<category>"
},
"name": "fetch_posts_by_category"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| category | Yes | ||
| page | No |