feat(workflows): add create_workflow action to data_workflows_tool#97
Closed
bertenator wants to merge 4 commits intosaifrom
Closed
feat(workflows): add create_workflow action to data_workflows_tool#97bertenator wants to merge 4 commits intosaifrom
bertenator wants to merge 4 commits intosaifrom
Conversation
PR 3 of 3 for DEVPL-3935. Adds data_workflows_tool to the public Webflow MCP server, calling GET /v2/sites/:site_id/workflows via raw fetch (no SDK method exists yet). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Extends data_workflows_tool with two new actions alongside list_workflows: - execute_workflow: POST /v2/sites/:site_id/workflows/:workflow_id/execute - get_workflow_execution_status: GET /v2/sites/.../executions/:execution_id Also refactors fetch calls into a shared apiRequest helper. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Adds create_workflow action to the existing data_workflows_tool, following the same registration pattern as list_workflows, execute_workflow, and get_workflow_execution_status. Also updates apiRequest to accept an optional body parameter to support POST requests that require a JSON payload. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
create_workflowaction todata_workflows_tool, following the same pattern aslist_workflows,execute_workflow, andget_workflow_execution_statusapiRequestto accept an optionalbodyparameter, enabling POST requests with a JSON payloadregisterWorkflowsTools/registerWorkflowToolsregistration as the existing workflow actionsAPI
POST /v2/sites/:site_id/workflowswith body{ templateSlug: string }Test plan
create_workflowwith a validsite_idandtemplate_slug(e.g.content-brief-generator) — should return created workflow with ID, name, active status, and template sluglist_workflows,execute_workflow,get_workflow_execution_status) are unaffectedapiRequestcalls without a body still work (noContent-Typeheader sent on GETs)