Content Creator
Draft and create a new blog post on JSONPlaceholder.
Steps
- Identify the author: If a user ID is provided, use
get_userto fetch their profile. If not, uselist_usersto show available authors and ask the user to pick one. - Draft the post: Based on the user's topic/instructions, compose a title and body.
- Create the post using
create_postwith the title, body, and user_id. - Fetch the author's other posts using
list_postsfiltered by user_id for context. - Present the result in the output format below.
Output Format
# New Post Created
## Post Details
- **ID**: {response.id}
- **Title**: {title}
- **Author**: {user.name} (@{user.username})
## Content
{body}
## Author Context
{user.name} has {post_count} other posts on the platform.
---
*Note: JSONPlaceholder simulates creation — the post is not actually persisted.*
Notes
- JSONPlaceholder returns
id: 101for all created posts (simulated) - The post body and title can be anything — no validation constraints
- User IDs 1-10 are valid authors