pub fn register(tool: CodeTool) -> Result<(), String>Expand description
Register a tool. Refuses (Err) an empty name, a duplicate, or a name that collides with agentd’s own self/control primitives — a code tool may shadow a remote MCP tool (first-party wins) but never the orchestration surface.