Skip to main content
Call as tracing.startTool() after importing tracing from @coreweave/forge-sdk/agentlens. Start a Tool span. Parent resolution (matches the design’s “flat by default, hierarchical if you nest”):
  • If an LLM is active, the Tool nests under it.
  • Otherwise, the Tool is a sibling under the current Turn.
Throws if neither a Turn nor an LLM is active.

Parameters

ToolInit
required
Type: ToolInit

Returns

Tool

Examples

Last modified on September 30, 2026