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. |
|
Run a shell command with captured output from the current working directory. |
|
Delete one regular file by relative or absolute path. |
|
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. |
|
Edit an existing UTF-8 file by replacing exact text; always use this tool to modify a file. |
|
Atomically write a UTF-8 text file. |
|
View a PNG, JPEG, GIF, or WebP from a local path or HTTP(S) URL. |