Add steps
add_stepsAppend a batch of steps to an existing orchestration. Keep batches small (≤5 steps) so each tool-call payload stays lean. Existing step ids in the orchestration are preserved — this is additive only. Duplicate step ids are rejected. Steps are passed as a JSON-encoded string.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"orch_id": "<orch_id>",
"steps_json": "<steps_json>"
},
"name": "add_steps"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| orch_id | Yes | ||
| steps_json | Yes | JSON-encoded array of step objects. Each step is an object with {id, name, type, ...type-specific fields}. See the step-type palette in your system prompt for the full field list per type. Keep each step lean — include only fields that differ from zero-defaults. Sub-structures MUST be JSON strings inside each step: route_map_json, route_descriptions_json, parallel_branches_json, human_fields_json, switch_cases_json, output_fields_json (an llm or agent step's answer fields, F1553). Retrieve and ingest steps take add_single_step's flat retrieve_* / ingest_* fields. An agent step that should read the images a person attaches in chat sets "pass_images": true. Minimal example (2 agent steps): '[{"id":"step_abc1234","name":"Analyse","type":"agent","agent_id":"agent_123","prompt_template":"Summarise {{ state.user_input }}","input_keys":["user_input"],"output_key":"summary","next_step_id":"step_def5678"},{"id":"step_def5678","name":"Done","type":"end"}]' |