get_job_audit_log
Retrieve detailed audit logs for job executions to track system actions and monitor workflow activities in the Opus automation platform.
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 executes the tool logic: extracts jobExecutionId, makes GET request to /job/{jobExecutionId}/audit API endpoint, and returns the response data as formatted JSON text content.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:92-93 (registration)The switch case in the CallToolRequestSchema handler that routes calls to the getJobAuditLog method.case "get_job_audit_log": return await this.getJobAuditLog(args);
- src/index.ts:226-240 (registration)The tool registration in the getTools() method, including name, description, and inputSchema.{ 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:230-239 (schema)The 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"], },