Create workflow

Create a workflow source file in the project source or a preview branch when a new multi-step process must be runnable or schedulable; returns the workflow source document. Requires project.runs.write.

Arguments

  • project_referencestring

    Project ID or slug that owns the new workflow.

  • idstring · min length 1 · max length 128required

    Stable workflow identifier used in MCP and project source.

  • descriptionstring | null

    Optional short description of what the workflow does.

  • versionstring | null

    Optional workflow version string.

  • schedulableboolean

    Whether the workflow can be triggered by schedulers.

  • source_target_kindstring

    Provide the source target kind.

  • target_branch_idstring · uuid | null

    Provide the target branch id.

Responses

curl -X POST -N "https://api.veryfront.com/mcp" \  -H "Authorization: Bearer $VERYFRONT_API_KEY" \  -H "Accept: application/json, text/event-stream" \  -H "Content-Type: application/json" \  -d '{  "jsonrpc": "2.0",  "id": 1,  "method": "tools/call",  "params": {    "name": "veryfront__create_workflow",    "arguments": {      "id": "a"    }  }}'
{  "jsonrpc": "2.0",  "id": 1,  "result": {    "content": [      {        "type": "text",        "text": "{\"id\":\"string\",\"name\":\"string\",\"description\":\"string\",\"target\":\"string\",\"source_path\":\"string\",\"source\":\"string\",\"version\":\"string\",\"schedulable\":false,\"edit_mode\":\"structured\",\"source_only_reasons\":[\"string\"]}"      }    ],    "structuredContent": {      "id": "string",      "name": "string",      "description": "string",      "target": "string",      "source_path": "string",      "source": "string",      "version": "string",      "schedulable": false,      "edit_mode": "structured",      "source_only_reasons": [        "string"      ]    }  }}

The tool ran; its output is result.structuredContent.