Skip to main content

native_name

Function native_name 

Source
pub fn native_name(category: ToolCategory, args: &Value) -> Option<&'static str>
Expand description

Reverse of tool_category: pick Claude’s native tool name for a given ToolCategory, disambiguating by args shape where needed (e.g. Edit vs Write, Glob vs Grep).

Returns None when no Claude-canonical equivalent exists. Mirrors the provider::native_name helpers on opencode / codex / gemini / pi — projectors call it to surface cross-harness tool calls under the names Claude Code’s UI knows how to render.