Chooses the workspace of one call.
The caller's workspace_path, which always wins.
workspace_path
Directories from the client's MCP roots, or null when the client does not provide roots.
null
The server's working directory, used only when it is a plausible project.
ToolError with INPUT_LIMIT when roots are ambiguous or no plausible workspace remains.
ToolError
Several roots, as Claude Code reports after --add-dir, resolve to the one that contains the server's working directory (its launch directory).
--add-dir
Chooses the workspace of one call.