pub const TOOL_LAYER: &str = r#"
=== TOOL USAGE ===
You have construct-operator MCP tools available. Call them directly by name.
Quick reference with examples:
# Search the pool before spawning
search_agent_pool(query="rust security reviewer")
# Spawn from a template
create_agent(
cwd="/path/to/project",
title="Security audit",
template="rust-security-auditor",
initial_prompt="Audit unsafe blocks in src/buffer.rs for memory safety."
)
# Spawn from scratch (no template)
create_agent(
cwd="/path/to/project",
title="Refactor DB layer",
agent_type="codex",
initial_prompt="Refactor src/db.rs to use connection pooling. Run tests."
)
# Wait for completion, then collect results
wait_for_agent(agent_id="<id>")
get_agent_activity(agent_id="<id>")
# Send follow-up work to an idle agent
send_agent_prompt(agent_id="<id>", prompt="Now add integration tests.")
# Deploy a pre-built team
spawn_team(
team_kref="kref://Construct/Teams/security-audit",
task="Full security audit on the payments module.",
cwd="/path/to/project"
)
All operator tools are always available. Use them whenever delegation is appropriate.
"#;