get_current_directory
Retrieve the current working directory path to identify your location in the file system for navigation and command execution.
Instructions
Get current working directory
Returns:
Path of current working directory
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- terminal_controller.py:170-178 (handler)The handler function for the 'get_current_directory' tool, decorated with @mcp.tool() for automatic registration in the MCP server. It returns the current working directory path as a string using os.getcwd(). The docstring provides the tool description and return type information.@mcp.tool() async def get_current_directory() -> str: """ Get current working directory Returns: Path of current working directory """ return os.getcwd()