Spawn a subagent
Description
Creates a new agent process with its own MCP server.
Usage
1subagent_spawn(task, model = NULL, tools = NULL, parent_session = NULL,
2 config = NULL)
Arguments
task: Task descriptionmodel: Optional model overridetools: Optional tool filter (character vector)parent_session: Parent session objectconfig: Config list
Value
Subagent ID