pub fn native_name(category: ToolCategory, args: &Value) -> Option<&'static str>Expand description
Reverse of tool_category: pick Codex’s preferred native tool name
for a generic ToolCategory, using call args to disambiguate.
Used by crate::project::CodexProjector when projecting tool calls
from foreign harnesses. Notably, FileWrite always maps to write_file
(not apply_patch) — apply_patch takes a free-form V4A patch
string rather than JSON args, so projecting JSON-shape edits as
apply_patch would emit a malformed CustomToolCall. Same-harness
round-trips preserve the source name verbatim before reaching this
fallback.