CostAffective
Back to Tools Overview
recall tool

Tool: recall

Take back only what you need: the budgeted slice of a stashed blob (by handle), or matching remembered facts, instead of re-reading the whole thing. This is the read side of the stash/recall loop.

Arguments Schema

ParameterTypeRequiredDescription
repo_pathstringRequiredAbsolute path to the workspace root.
querystringRequiredWhat to look for within the source.
sourcestringOptionalA stash handle to read from, or "facts" for remembered facts. Omit to search both.
budgetstringOptionalToken budget for the returned slice (small, medium, large).
Tool Input JSONRequest
{
  "repo_path": "/path/to/repo",
  "source": "a1b2c3d4e5f6",
  "query": "error",
  "budget": "small"
}
Tool Response JSONResponse
internal/build/step.go:142: error: undefined symbol "Foo"
... +3 more matching lines (narrow the query or raise budget)

Developer Best Practices

  • Pair with stash_context: stash the monster, then recall only the lines that match your query.
  • Narrow the query or raise the budget if the result is truncated.