in agents/tools/base.py [0:0]
def to_dict(self) -> dict[str, Any]:
"""Convert tool to Claude API format."""
return {
"name": self.name,
"description": self.description,
"input_schema": self.input_schema,
}