Skip to content

API Reference parrot.tools.repo.schemas

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot.tools.repo.schemas

View source

Pydantic argument schemas for ReadOnlyRepoToolkit tools (FEAT-484).

Each schema is attached to its tool method with the @tool_schema decorator (parrot/tools/decorators.py:39) and describes the arguments an LLM may pass when calling that tool.

Class GitBlameInput

Arguments for git_blame.

Fields:

Field Type Default Description
path str Repository-relative path to blame.
start int 1 1-based first line to blame.
end int 0 1-based last line, inclusive. 0 means EOF.

Class GitLogInput

Arguments for git_log.

Fields:

Field Type Default Description
path str '' Repository-relative path to filter by. Empty = whole repo.
limit int 20 Maximum commits to return (clamped to 200).

Class GitShowInput

Arguments for git_show.

Fields:

Field Type Default Description
ref str A commit sha, branch, tag, or ref such as 'HEAD~3'.

Class GrepFilesInput

Arguments for grep_files.

Fields:

Field Type Default Description
pattern str Fixed-string pattern to search for, literally.
glob str '' Optional glob to restrict which files are searched.

Class ListFilesInput

Arguments for list_files.

Fields:

Field Type Default Description
path str '.' Repository-relative directory to list.
depth int 1 How many directory levels to recurse.

Class ReadFileInput

Arguments for read_file.

Fields:

Field Type Default Description
path str Repository-relative path, e.g. 'pkg/sub/mod.py'.
start int 1 1-based first line to return.
end int 0 1-based last line, inclusive. 0 means end of file.

Class RelatedCodeInput

Arguments for related_code.

Fields:

Field Type Default Description
page_id str A page id previously returned by search_code.

Class SearchCodeInput

Arguments for search_code.

Fields:

Field Type Default Description
query str What you are looking for — name the symbol, module, or subsystem, not your theory about where it might be.
top_k int 12 Maximum results to return.
mode Literal['lexical', 'vector', 'combined'] | None None 'lexical' (default) matches names and text — best for symbols and modules. 'combined' also considers semantic similarity where available. 'vector' is semantic only. When semantic search is not configured, these fall back to lexical and the result is marked degraded.

Class WebSearchInput

Arguments for web_search (only exposed when opted in).

Fields:

Field Type Default Description
query str What to search the web for.
max_results int 5 Maximum results to return.

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally