#ACP Agent Spawn
1 messages ยท Page 1 of 1 (latest)
Yes, but not by default.
A persistent ACP session can spawn another persistent ACP session if all of these are true:
- nested spawns are allowed, set
agents.defaults.subagents.maxSpawnDepth >= 2- default is
1, which means no nested spawns
- default is
- the parent session has
sessions_spawnavailable at its depth - the ACP target is allowed by
acp.allowedAgents(oracp.defaultAgentis set) - for a persistent child on Discord, spawn with
runtime: "acp",thread: true,mode: "session" - and
channels.discord.threadBindings.spawnAcpSessions: trueis enabled if OpenClaw needs to create/bind the thread automatically
One more gotcha: ACP spawns are blocked from sandboxed sessions.
So the short version is: yes, a depth-1 persistent ACP agent can spawn a depth-2 persistent ACP agent, but the depth-2 child is a leaf and cannot keep spawning further.
Docs:
If you want, I can sketch the exact config + sessions_spawn call for this setup.
Does pluginToolsMcpBridge: true expose sessions_spawn to ACPX runtimes? Or only plugin-registered tools?
Only plugin-registered tools.
pluginToolsMcpBridge: true injects the openclaw-plugin-tools MCP server, and that server exposes tools resolved from installed/enabled plugins, not core OpenClaw built-ins like sessions_spawn.
So:
pluginToolsMcpBridge: trueโ exposes plugin toolssessions_spawnโ available only through the normal OpenClaw tool surface, if that ACP session is allowed to have it by policy/depth- enabling the MCP bridge does not magically add
sessions_spawnto ACPX
The docs are pretty explicit here: ACP agents get access only to plugin tools already active in the gateway.
Refs:
- https://docs.openclaw.ai/tools/acp-agents#plugin-tools-mcp-bridge
- https://docs.openclaw.ai/tools/subagents
If you want, I can also map out the exact conditions under which an ACPX session will see sessions_spawn.