List Blog Posts
list_blogsRetrieve a list of all blog posts for a given website ID. Use this tool to view existing posts before creating or updating content.
Instructions
List all blog posts on a website.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| website_id | Yes | The website ID |
Implementation Reference
- server/index.js:752-766 (registration)Registration of the 'list_blogs' tool with its metadata (title, description, inputSchema, annotations).
server.registerTool( "list_blogs", { title: "List Blog Posts", description: "List all blog posts on a website.", inputSchema: { website_id: z.string().describe("The website ID"), }, annotations: { readOnlyHint: true, destructiveHint: false, openWorldHint: false }, }, async ({ website_id }) => { const data = await apiCall(`/v1/workspace/website/${website_id}/blogs/list`, "GET"); return { content: [{ type: "text", text: JSON.stringify(data?.result ?? data, null, 2) }] }; } ); - server/index.js:762-765 (handler)Handler function that makes an API call to list all blog posts for a given website_id, returning the response as text content.
async ({ website_id }) => { const data = await apiCall(`/v1/workspace/website/${website_id}/blogs/list`, "GET"); return { content: [{ type: "text", text: JSON.stringify(data?.result ?? data, null, 2) }] }; }