Skip to main content

native_name

Function native_name 

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

Reverse of tool_category: the Copilot-native tool name for a category.

Used by the projector to remap a foreign harness’s tool name (e.g. Claude’s Bash, codex’s shell) into Copilot’s vocabulary. FileWrite/FileSearch are too coarse alone, so the arg shape disambiguates. Every returned name re-classifies back to the same category via tool_category, so a Copilot→Copilot round-trip is stable.