Skip to content

agent_tools

agent_tools

Inter-agent lifecycle tools — spawn, send, list, and kill agents.

These MCP tools allow an orchestrating agent (or the system) to manage child agent lifecycles at runtime. Spawned agent metadata is tracked in a module-level dictionary so that any tool in the same process can query or terminate running agents.

Classes

AgentSpawnTool

Bases: BaseTool

Spawn a new agent instance and optionally send it an initial query.

AgentSendTool

Bases: BaseTool

Send a message to a previously spawned agent.

AgentListTool

Bases: BaseTool

List all spawned agents and their current status.

AgentKillTool

Bases: BaseTool

Kill (stop) a spawned agent by its ID.