get_workflow_inputs
Retrieve required input parameters for a Folderr workflow to prepare for execution.
Instructions
Get the required inputs for a workflow
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workflow_id | Yes | ID of the workflow |
Implementation Reference
- src/index.ts:410-436 (handler)The handler function that executes the tool logic: authenticates, calls the Folderr API to get workflow inputs for the given workflow_id, and returns the JSON response or an error message.private async handleGetWorkflowInputs(args: any) { if (!this.config.token) { throw new McpError(ErrorCode.InvalidRequest, 'Not logged in'); } try { const response = await this.axiosInstance.get(`/api/workflows/api-client/${args.workflow_id}/inputs`); return { content: [ { type: 'text', text: JSON.stringify(response.data, null, 2), }, ], }; } catch (error: any) { return { content: [ { type: 'text', text: `Failed to get workflow inputs: ${error.response?.data?.message || error.message}`, }, ], isError: true, }; } }
- src/index.ts:182-191 (schema)Input schema defining the required 'workflow_id' parameter for the tool.inputSchema: { type: 'object', properties: { workflow_id: { type: 'string', description: 'ID of the workflow', }, }, required: ['workflow_id'], },
- src/index.ts:179-192 (registration)Tool registration in the ListTools response, defining name, description, and input schema.{ name: 'get_workflow_inputs', description: 'Get the required inputs for a workflow', inputSchema: { type: 'object', properties: { workflow_id: { type: 'string', description: 'ID of the workflow', }, }, required: ['workflow_id'], }, },
- src/index.ts:227-228 (registration)Dispatcher case in CallToolRequest handler that routes to the specific handler function.case 'get_workflow_inputs': return await this.handleGetWorkflowInputs(request.params.arguments);