pwd
Display the current working directory path to help users navigate and manage files within virtual filesystem workspaces.
Instructions
Get current working directory.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/chuk_mcp_vfs/vfs_tools.py:310-318 (handler)Core handler function that retrieves the current working directory from the workspace manager and returns a PrintWorkingDirectoryResponse.async def pwd(self) -> PrintWorkingDirectoryResponse: """ Get current working directory. Returns: PrintWorkingDirectoryResponse with cwd """ cwd = self.workspace_manager.get_current_path() return PrintWorkingDirectoryResponse(cwd=cwd)
- src/chuk_mcp_vfs/server.py:136-139 (registration)MCP tool registration for 'pwd' using the @server.tool decorator, which delegates to the VFSTools.pwd method.@server.tool async def pwd(): """Get current working directory.""" return await vfs_tools.pwd()
- src/chuk_mcp_vfs/models.py:226-229 (schema)Pydantic model defining the response schema for the pwd tool, containing the current working directory path.class PrintWorkingDirectoryResponse(BaseModel): """Response from pwd operation""" cwd: str