get_job_results
Retrieve results from completed job executions in the Opus workflow automation platform. Provide a job execution ID to access output data when the job status is COMPLETED.
Instructions
Get the results of a completed job execution. Only works when job status is COMPLETED
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| jobExecutionId | Yes | The job execution ID to retrieve results for |
Implementation Reference
- src/index.ts:337-351 (handler)The main handler function for the 'get_job_results' tool. It extracts the jobExecutionId from arguments, makes a GET request to `/job/${jobExecutionId}/results` using the axios instance, and returns the response data as formatted JSON text content.private async getJobResults(args: any) { const { jobExecutionId } = args; const response = await this.axiosInstance.get( `/job/${jobExecutionId}/results` ); return { content: [ { type: "text", text: JSON.stringify(response.data, null, 2), }, ], }; }
- src/index.ts:211-225 (schema)The tool definition in the list of tools returned by getTools(), including the name, description, and input schema requiring 'jobExecutionId'.{ name: "get_job_results", description: "Get the results of a completed job execution. Only works when job status is COMPLETED", inputSchema: { type: "object", properties: { jobExecutionId: { type: "string", description: "The job execution ID to retrieve results for", }, }, required: ["jobExecutionId"], }, },
- src/index.ts:89-92 (registration)The switch case in the CallToolRequestSchema handler that routes calls to 'get_job_results' to the getJobResults method.return await this.getJobStatus(args); case "get_job_results": return await this.getJobResults(args); case "get_job_audit_log":