pub fn resolve_tool_paths(
args: &Map<String, Value>,
ctx: &ToolContext,
) -> Result<ResolvedPaths, String>Expand description
Resolve tool paths with multi-root support.
Priority:
0. repo argument (multi-repo alias → specific root)
pathsarray argument (explicit multi-root)pathstring argument (single root, pre-resolved by dispatch)- Session
extra_roots(default multi-root from config/MCP) - Fallback to
"."(project root)
Returns Err when an explicit path/paths argument was supplied but
could not be resolved (outside the project root, secret-screened, or
non-existent). Silently falling back to the project root in that case made
ctx_tree path=/outside/repo return the whole project tree (#401).