Usage and pricing
Programmatic tool calling uses the same pricing as code execution. See the code execution pricing for details.
Token counting for programmatic tool calls: Tool results from programmatic invocations do not count toward your input/output token usage. Only the final code execution result and Claude's response count.