mcpDeterministic
Update reply drafting settings
tools/call
Choose who drafts campaign replies: pipeline_hosted uses workspace AI credentials, external_agent queues work for a running coding agent. Requires the workspace owner session or owner personal token with write scope. Service API keys cannot change this setting. Approval and sending permissions are unchanged. External-only clients cannot select pipeline_hosted. CLI and SDK callers must explicitly pass allowHostedAi=true when selecting pipeline_hosted.
Parameters
workspaceId
string
No description.
moderequired
string
No description.
pipeline_hosted | external_agent
allowHostedAi
boolean
Explicitly permit enabling future Pipeline-hosted drafting. Required for CLI/SDK clients selecting pipeline_hosted; omitted for external_agent. This flag is transport consent, not a saved setting.
Example
MCP tools/calljson
{"jsonrpc": "2.0","id": 1,"method": "tools/call","params": {"name": "update-reply-drafting-settings","arguments": {"mode": "pipeline_hosted"}}}
Response
Success response schemajson schema
{"type": "object","properties": {"mode": {"type": "string","enum": ["pipeline_hosted","external_agent"]},"status": {"type": "string","enum": ["pipeline_hosted","paused","waiting","drafting","setup_required"]},"pendingCount": {"type": "integer","minimum": 0},"runningCount": {"type": "integer","minimum": 0},"legacyScoped": {"type": "boolean"}},"required": ["mode","status","pendingCount","runningCount","legacyScoped"],"additionalProperties": false}
JSON-RPC errors
- -32602
- Invalid parameters. Field-level details are returned in the JSON-RPC error data.
- -32001
- Authentication or hosted AI consent is required.
- -32003
- Workspace access is denied.
- -32029
- The request was rate limited.