agent-status
Check the status of a running agent job on the LLM Conveyors platform to monitor progress and retrieve results.
Instructions
Check the status of a running agent job.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agentType | Yes | Agent type | |
| jobId | Yes | Job ID returned from a generate call |
Implementation Reference
- src/tools/agents.ts:64-83 (handler)The implementation of the "agent-status" MCP tool within the registerAgentTools function, which uses the client.agents.getStatus method to retrieve the status of an agent job.
// --- Agent status polling --- server.tool( "agent-status", "Check the status of a running agent job.", { agentType: z.enum(["job-hunter", "b2b-sales"]).describe("Agent type"), jobId: z.string().describe("Job ID returned from a generate call"), }, async (params) => { try { const result = await client.agents.getStatus(params.agentType, params.jobId, { include: ["logs", "artifacts"], }); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] }; } catch (err) { const message = err instanceof Error ? err.message : String(err); return { content: [{ type: "text", text: `Error: ${message}` }], isError: true }; } }, );