Skip to content

@repo/sdk / printWorkingDirectory

Function: printWorkingDirectory() ​

printWorkingDirectory(cwd?): string

Defined in: tools/review.ts:18

Return current working directory. When used from the MCP server, use console.error() for debug logs—stdout is reserved for JSON-RPC.

Parameters ​

cwd? ​

string = ...

Returns ​

string