Edit workflow graph
edit_graphApply ONE granular edit to a workflow agent's graph (agent must be pattern_type=workflow). The extra fields you pass depend on op: add_node -> node {name,type,config?,position?}; update_node -> name, config_patch?, position?, new_name?; remove_node -> name; add_edge -> from_node, to_node, kind? ('flow' default, 'state' for state access), condition?, label?; remove_edge -> from_node, to_node; set_state_field -> field, field_type? (default 'str'), default?, reducer?. Node types in use: state, condition, router, agent, set_state. start/end are valid edge endpoints.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | Yes | Which graph operation to apply. | |
| agent_id | Yes | Target agent's id (from list_agents / create_agent / get_catalog view=agents). |