get_task_logs
Retrieve execution logs for a specific task to monitor performance and troubleshoot issues in Netflix Conductor workflows.
Instructions
Get execution logs for a specific task. Returns log entries generated during task execution.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| taskId | Yes | The unique task execution ID |
Implementation Reference
- src/index.ts:687-699 (handler)The handler function for the get_task_logs tool. It extracts the taskId from arguments, makes an API call to Conductor's /tasks/{taskId}/log endpoint, and returns the response data as formatted JSON text.case "get_task_logs": { const { taskId } = args as any; const response = await conductorClient.get(`/tasks/${taskId}/log`); return { content: [ { type: "text", text: JSON.stringify(response.data, null, 2), }, ], }; }
- src/index.ts:310-319 (schema)Input schema definition for the get_task_logs tool, specifying that it requires a 'taskId' string parameter.inputSchema: { type: "object", properties: { taskId: { type: "string", description: "The unique task execution ID", }, }, required: ["taskId"], },
- src/index.ts:306-320 (registration)Registration of the get_task_logs tool in the 'tools' array, which is returned by the ListToolsRequestHandler. Includes name, description, and input schema.{ name: "get_task_logs", description: "Get execution logs for a specific task. Returns log entries generated during task execution.", inputSchema: { type: "object", properties: { taskId: { type: "string", description: "The unique task execution ID", }, }, required: ["taskId"], }, },