initiate_job
Start workflow execution by providing workflow ID, title, and description to create a job with a unique execution ID for tracking.
Instructions
Initiate a new job for a workflow. Returns jobExecutionId required for subsequent operations
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workflowId | Yes | The ID of the workflow to execute | |
| title | Yes | Title for the job | |
| description | Yes | Description for the job |
Implementation Reference
- src/index.ts:260-276 (handler)The main handler function for the 'initiate_job' tool. It extracts workflowId, title, and description from args, sends a POST request to the '/job/initiate' endpoint, and returns the response as formatted text content.private async initiateJob(args: any) { const { workflowId, title, description } = args; const response = await this.axiosInstance.post("/job/initiate", { workflowId, title, description, }); return { content: [ { type: "text", text: JSON.stringify(response.data, null, 2), }, ], }; }
- src/index.ts:130-152 (registration)Tool registration in the listTools response, including the name 'initiate_job', description, and input schema defining required parameters.{ name: "initiate_job", description: "Initiate a new job for a workflow. Returns jobExecutionId required for subsequent operations", inputSchema: { type: "object", properties: { workflowId: { type: "string", description: "The ID of the workflow to execute", }, title: { type: "string", description: "Title for the job", }, description: { type: "string", description: "Description for the job", }, }, required: ["workflowId", "title", "description"], }, },
- src/index.ts:82-83 (handler)Dispatch case in the CallToolRequestHandler that routes 'initiate_job' calls to the initiateJob method.case "initiate_job": return await this.initiateJob(args);