Skip to main content

resolve_tool_path

Function resolve_tool_path 

Source
pub fn resolve_tool_path(
    workspace_root: &Path,
    user_path: &str,
    policy: PathPolicy,
) -> Result<ResolvedToolPath, String>
Expand description

Resolve a user-supplied file path for tool execution.

Relative paths are based on workspace_root; absolute paths are preserved. A leading @ is ignored for editor-style path mentions, and ~ expands from HOME/USERPROFILE when available.