get_job_audit_log
Retrieve detailed audit logs of all system actions performed during a specific job execution in Opus workflow automation.
Instructions
Get detailed audit log of all system actions during job execution
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| jobExecutionId | Yes | The job execution ID to retrieve audit log for |
Implementation Reference
- src/index.ts:353-367 (handler)The handler function that implements the get_job_audit_log tool by making an API GET request to `/job/{jobExecutionId}/audit` and returning the response data as formatted JSON text.private async getJobAuditLog(args: any) { const { jobExecutionId } = args; const response = await this.axiosInstance.get( `/job/${jobExecutionId}/audit` ); return { content: [ { type: "text", text: JSON.stringify(response.data, null, 2), }, ], }; }
- src/index.ts:230-239 (schema)Input schema defining the required 'jobExecutionId' parameter for the tool.inputSchema: { type: "object", properties: { jobExecutionId: { type: "string", description: "The job execution ID to retrieve audit log for", }, }, required: ["jobExecutionId"], },
- src/index.ts:226-240 (registration)The tool registration entry in the listTools response, including name, description, and input schema.{ name: "get_job_audit_log", description: "Get detailed audit log of all system actions during job execution", inputSchema: { type: "object", properties: { jobExecutionId: { type: "string", description: "The job execution ID to retrieve audit log for", }, }, required: ["jobExecutionId"], }, },
- src/index.ts:92-93 (helper)Switch case in the CallToolRequest handler that dispatches to the specific tool handler.case "get_job_audit_log": return await this.getJobAuditLog(args);