Tools#
Build typed tools from annotations and docstrings.
Read the walkthrough before consulting individual signatures.
Interface |
Purpose |
|---|---|
A tool is a name, an input schema, and an async callable. |
|
Local scheduling policy for one Agent tool. |
|
Extract immutable |
|
Extract the |
|
Return a tool description that carries its snippet and guidelines. |
|
Render grouped tool metadata for insertion into a system prompt. |
|
Return every model-facing text field of one tool for search indexing. |
|
Turn a typed function and its structured docstring into an AgentTool. |
|
Edit an existing UTF-8 file by replacing exact text; always use this tool to modify a file. |
|
Find paths matching a relative or absolute glob pattern. |
|
Search UTF-8 text files selected by a relative or absolute glob pattern. |
|
Read a local file: UTF-8 text as a line range, or a PNG, JPEG, GIF, or WebP image as an image. |
|
Read a line range from a UTF-8 text file. |
|
Atomically write a UTF-8 text file. |
|
View a PNG, JPEG, GIF, or WebP from a local path or HTTP(S) URL. |
|
A command that exited with a code other than 0, or ran out of time. The message carries what it printed. |
|
Run a shell command with captured output, in the working directory or in |