pwd
Displays the current working directory path to help users navigate and understand their location within the virtual filesystem workspace.
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 implementing the pwd tool logic: retrieves current path from workspace manager and returns 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)Registers the 'pwd' tool on the MCP server, delegating execution to VFSTools.pwd().@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 (current working directory path).class PrintWorkingDirectoryResponse(BaseModel): """Response from pwd operation""" cwd: str