get_working_directory
Get the current working directory of the session. This path persists across tool calls and defaults to the user's home directory.
Instructions
Return the current session working directory.
The working directory persists across all tool calls within the same server session. It defaults to the user's home directory on startup.
Returns: A dict with keys: status, data (containing cwd, exists, is_dir).
Examples: get_working_directory()
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_working_directory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||