Get Blog HTML
get_blog_htmlFetch the complete HTML content of any blog post by providing the website and blog post IDs.
Instructions
Get the HTML content of a blog post.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| website_id | Yes | The website ID | |
| blog_id | Yes | The blog post ID |
Implementation Reference
- server/index.js:866-881 (registration)Registration of the 'get_blog_html' tool using server.registerTool().
server.registerTool( "get_blog_html", { title: "Get Blog HTML", description: "Get the HTML content of a blog post.", inputSchema: { website_id: z.string().describe("The website ID"), blog_id: z.string().describe("The blog post ID"), }, annotations: { readOnlyHint: true, destructiveHint: false, openWorldHint: false }, }, async ({ website_id, blog_id }) => { const data = await apiCall(`/v1/workspace/website/${website_id}/blogs/${blog_id}/html`, "GET"); return { content: [{ type: "text", text: JSON.stringify(data?.result ?? data, null, 2) }] }; } ); - server/index.js:871-874 (schema)Input schema definition with website_id and blog_id parameters using Zod.
inputSchema: { website_id: z.string().describe("The website ID"), blog_id: z.string().describe("The blog post ID"), }, - server/index.js:877-880 (handler)Handler function that calls the API endpoint /v1/workspace/website/{website_id}/blogs/{blog_id}/html via GET and returns the HTML content.
async ({ website_id, blog_id }) => { const data = await apiCall(`/v1/workspace/website/${website_id}/blogs/${blog_id}/html`, "GET"); return { content: [{ type: "text", text: JSON.stringify(data?.result ?? data, null, 2) }] }; }