Skip to main content

Crate zeroclaw_tools

Crate zeroclaw_tools 

Expand description

Tool implementations for agent-callable capabilities.

Modules§

a2a_client
A2A outbound client (caller role): the a2a_* tools that delegate tasks to remote A2A-compliant agents.
ask_user
Interactive user prompting tool for cross-channel confirmations.
attribution
Centralized Attributable impls for every concrete Tool in this crate. Each invocation surfaces Role::Tool(ToolKind::*) and uses the tool’s name() as its alias so log emissions can attribute tool activity with the same <kind>.<alias> composite the rest of
backup_tool
calculator
canvas
Live Canvas (A2UI) tool — push rendered content to a web canvas in real time.
channel_room
Channel room-management tool.
cli_discovery
CLI tool auto-discovery — scans PATH for known CLI tools. Zero external dependencies (uses std::process::Command + std::env).
cloud_ops
Cloud operations advisory tool for cloud transformation analysis.
cloud_patterns
Cloud pattern library for recommending cloud-native architectural patterns. Provides a built-in set of cloud migration and modernization patterns, with pattern matching against workload descriptions.
coding_cli
content_search
data_management
discord_search
email_imap
embedded_resource
Materialize embedded resource.blob payloads into the session workspace. Store-agnostic: no RPC SessionStore / file/attach. Shared by ACP inbound and MCP tools/call postprocessing.
escalate
Human escalation tool with urgency-aware routing.
file_download
file_edit
file_upload
file_upload_bundle
file_write
git_forge
Unified forge operations tool routed through a forge-backed channel.
git_operations
glob_search
hardware_board_info
Hardware board info tool — returns chip name, architecture, memory map for Telegram/agent. Use when user asks “what board do I have?”, “board info”, “connected hardware”, etc. Uses probe-rs for Nucleo when available; otherwise static datasheet info.
hardware_memory_map
Hardware memory map tool — returns flash/RAM address ranges for connected boards.
hardware_memory_read
Hardware memory read tool — read actual memory/register values from Nucleo via probe-rs. Use when user asks to “read register values”, “read memory at address”, “dump lower memory”, etc. Requires probe feature and Nucleo connected via USB.
helpers
http_request
image_info
inventory
Compiled inventory of the built-in agent tools.
knowledge_tool
Knowledge management tool for capturing, searching, and reusing expertise. Exposes the knowledge graph to the agent via the Tool trait.
llm_task
Lightweight LLM task tool for structured JSON-only sub-calls.
mcp_client
MCP (Model Context Protocol) client — connects to external tool servers. Supports multiple transports: stdio (spawn local process), HTTP, and SSE.
mcp_context
Helpers that format MCP resource/prompt content for safe injection into the model context. All server-origin content is wrapped with an trust="untrusted-external" provenance marker and run through the existing secret-scrubbing/length-bounding used elsewhere for server-controlled text.
mcp_deferred
Deferred MCP tool loading — stubs and activated-tool tracking.
mcp_prompt
MCP prompt protocol types (prompts/list, prompts/get).
mcp_prompts_tool
Built-in tool exposing MCP prompts (list / get) across all servers.
mcp_protocol
MCP (Model Context Protocol) JSON-RPC 2.0 protocol types. Protocol version: 2024-11-05 Adapted from ops-mcp-server/src/protocol.rs for client use. Both Serialize and Deserialize are derived — the client both sends (Serialize)
mcp_resource
MCP resource protocol types (resources/list, resources/read).
mcp_resources_tool
Built-in tool exposing MCP resources (list / read) across all servers.
mcp_tool
Wraps a discovered MCP tool as a zeroclaw Tool so it is dispatched through the existing tool registry and agent loop without modification.
mcp_transport
MCP transport abstraction — supports stdio, SSE, and HTTP transports.
memory_export
memory_forget
memory_purge
memory_recall
memory_store
model_routing_config
node_capabilities
Standard node capability definitions for device nodes. These define the expected schemas that camera, screen, location, and notification nodes should advertise when they connect via WebSocket.
pipeline
poll
proxy_config
reaction
Emoji reaction tool for cross-channel message reactions.
send_via
Per-turn output routing tool (send_via).
sessions
Session inspection, history access, and the deprecated legacy append tool.
tool_search
tool_search discovery for built-in and MCP tool schemas.
util_helpers
web_fetch
web_search_provider_routing
wrappers
Generic tool wrappers for crosscutting concerns.

Constants§

MEMORY_TOOL_NAMES