projects_edit
Change an existing project draft using a natural-language instruction or an exact patch.
Effect: This call saves data or changes configuration. Review the behavior below before using it.
Inputs
Supply exactly one of description and direct_patch, in addition to project_id.
project_id
string
Required
ID returned by projects_list; use a project in the active organization.
publish
boolean
Optional
Default false. Set true only to publish the resulting draft.
description
string
Exactly one required
Natural-language change instructions. Supply this or direct_patch, not both.
direct_patch
array of patch operations
Exactly one required
Structured operations: add_node, remove_node, update_node, add_edge, remove_edge. Exactly one of this and description is required.
dry_run
boolean
Optional
Default false. true previews a direct patch without saving. Not supported in description mode.
Example
These are MCP tool arguments, not an HTTP request body. Replace bracketed IDs with values returned from your account.
{
"project_id": "<project-id>",
"description": "Keep the existing inputs and integrations. Update the response instructions to distinguish facts from missing information.",
"publish": false
}Result
Abbreviated result example; unshown fields are omitted for clarity.
Behavior
Description mode uses AI; direct_patch applies structured operations.
Read the current draft first.
Set publish=false explicitly while iterating; publish=true attempts to replace the published version. dry_run=true is supported only with direct_patch and writes nothing.
Inspect delta, action_param_corrections, published and publish_error; a saved draft is not proof of publication.
The result identifies the project as flow_id.
Troubleshooting
If the patch is rejected, use the returned operation index and suggested fix, read the draft again, and preview the corrected patch. If publication fails, inspect publish_error: the draft may still have been saved.
Related resources
Projects and workflow authoring
Was this helpful?

