Skip to content

get

get(config, prId?, command?): StructuredToolInterface

Defined in: _worktrees/docs-release/gaunt-sloth/packages/review/src/tools/ghReadFileTool.ts:246

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.

CFG-52 — command selects which builtInTools registry the byte cap is read from, so commands.pr and commands.review each configure their own run.

GthConfig

string

GhReadFileCommand = 'pr'

StructuredToolInterface