subagent_spawn

Spawn a subagent

Description

Creates a new agent process with its own MCP server.

Usage

subagent_spawn(task, model = NULL, tools = NULL, parent_session = NULL,
               config = NULL)

Arguments

  • task: Task description
  • model: Optional model override
  • tools: Optional tool filter (character vector)
  • parent_session: Parent session object
  • config: Config list

Value

Subagent ID