Check Blog Creation Status
check_blog_statusMonitor a blog creation workflow by polling with its workflow ID. Receive status updates until completion, then access the published blog result.
Instructions
Poll the status of a blog-creation workflow started by create_blog. Pass the workflow_id you received from that tool. While running, call this again after poll_after_ms ms. Once done is true, status is complete or errored; when complete, result holds the published blog info.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workflow_id | Yes | Workflow id returned by create_blog |
Implementation Reference
- server/index.js:924-939 (registration)Registration of the 'check_blog_status' tool via server.registerTool(). Includes tool name, title, description, input schema (workflow_id), readOnlyHint=true annotation, and the handler.
server.registerTool( "check_blog_status", { title: "Check Blog Creation Status", description: "Poll the status of a blog-creation workflow started by `create_blog`. Pass the `workflow_id` you received from that tool. While running, call this again after `poll_after_ms` ms. Once `done` is true, `status` is `complete` or `errored`; when complete, `result` holds the published blog info.", inputSchema: { workflow_id: z.string().describe("Workflow id returned by create_blog"), }, annotations: { readOnlyHint: true, destructiveHint: false, openWorldHint: false }, }, async ({ workflow_id }) => { const data = await apiCall(`/v1/ai/workspace/blog/status/${encodeURIComponent(workflow_id)}`, "GET"); const payload = data?.result || data; return { content: [{ type: "text", text: JSON.stringify(payload, null, 2) }] }; } ); - server/index.js:934-938 (handler)Handler function for 'check_blog_status'. Takes { workflow_id }, calls GET /v1/ai/workspace/blog/status/{workflow_id} via apiCall(), and returns the JSON response as text content.
async ({ workflow_id }) => { const data = await apiCall(`/v1/ai/workspace/blog/status/${encodeURIComponent(workflow_id)}`, "GET"); const payload = data?.result || data; return { content: [{ type: "text", text: JSON.stringify(payload, null, 2) }] }; } - server/index.js:929-932 (schema)Input schema for 'check_blog_status': expects a single 'workflow_id' string field, described as 'Workflow id returned by create_blog'.
inputSchema: { workflow_id: z.string().describe("Workflow id returned by create_blog"), }, annotations: { readOnlyHint: true, destructiveHint: false, openWorldHint: false },