Skip to main content
Most agent frameworks automatically track tool calls for you. If you’re using OpenAI Agents, Agno, Mastra, or other supported frameworks, tool calls are already being captured automatically. You only need manual instrumentation for custom tools or unsupported frameworks.

Manual Tool Tracking

If you have custom tools that aren’t automatically tracked, you can manually instrument them using the @langwatch.span(type="tool") decorator:
This will display the tool call with a tool icon in the trace visualization and include it in tool call analytics in the LangWatch dashboard.