Skip to content

get

get(_, prId?): StructuredToolInterface

Defined in: review/src/tools/ghReadFileTool.ts:206

Built-in tool factory matching the repo’s get(config) tool idiom (see gthWebFetchTool).

prId identifies the PR under review (undefined in gth pr discovery mode → current branch). The owner/repo/ref are resolved from it once, lazily, and memoised for the run, so the agent cannot read files from any repo other than the one being reviewed.

GthConfig

string

StructuredToolInterface