validate_sequence
Walk a sequence tree and return structural issues (missing body on message/follow_up/inmail, duplicate step ids, invalid branch keys, branches on non-branchable steps, etc.) before you call create_campaign. Returns { valid: bool, issues: [...], warnings?: [...] }; warnings lists any unfilled [bracketed placeholders], which block launch. Call this after every meaningful edit when iterating on a sequence with the user, catches errors at the agent layer instead of waiting for the API to reject at activation.
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": {
"sequence": "<sequence>"
},
"name": "validate_sequence"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sequence | Yes | The sequence tree to validate. Same shape as create_campaign's sequence arg. |