Skip to main content

tool_call_names

Function tool_call_names 

Source
pub fn tool_call_names(entry: &Value) -> Vec<&str>
Expand description

Names of the tools called in one transcript record, in every transcript schema a supported agent writes:

  • Claude Code: type: "assistant", message.content[] blocks of type: "tool_use"
  • pi (GSD) and OpenCode: type: "message", an assistant message.content[] with blocks of type: "toolCall"
  • Codex: type: "response_item" whose payload is a custom_tool_call or function_call (named) or a local_shell_call (counted as Bash, the name the server gives it)
  • Amp: type: "amp_message" (the envelope the bundled plugin wraps Amp’s own thread messages in), an assistant message.content[] with blocks of type: "tool_use". Names are Amp’s own (create_file, edit_file, shell_command, Task, create_thread, …).