Skip to main content
xbot
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

Built-in Tools

xbot includes ~50 built-in tools the agent can call during conversations. This page provides a reference for all available tools.

File Operations

ToolDescription
ReadRead file content with line numbers, optional offset/limit
FileCreateCreate new files (errors if file already exists)
FileReplaceSearch-and-replace in files (exact or RE2 regex, line range, replace_all)
GlobFind files by glob pattern (** recursive matching)
GrepSearch file contents with RE2 regex, include filter, ignore_case, context_lines
CdChange working directory (persists across tool calls)
DownloadFileDownload files from Feishu messages or web/OSS URLs

Execution

ToolDescription
ShellExecute shell commands. Configurable timeout (default 120s), background mode, run_as user switching
shell_envEnvironment variable management (export VAR=value), auto-persisted to ~/.xbot_env
ToolDescription
FetchFetch web URL content, convert HTML to markdown via readability + tiktoken truncation
WebSearchWeb search via Tavily API with configurable depth and max results

Context & Session

ToolDescription
context_editEdit conversation context: list turns, delete turn/message, truncate, regex replace
ChatHistoryRetrieve recent messages from group chats
recallRetrieve offloaded or masked observation content with pagination
recall_maskedRetrieve masked observations only
offload_recallRetrieve offloaded tool result content by offload ID

Scheduling & Events

ToolDescription
CronManage scheduled tasks: add (interval/delay/cron_expr/at), list, remove
EventTriggerManage webhook event triggers with Go template support and HMAC-SHA256 verification

Interactive Cards (Feishu)

ToolDescription
card_createCreate interactive card sessions
card_add_contentAdd content (markdown, div, image, table, chart)
card_add_interactiveAdd interactive elements (button, input, select, date_picker)
card_add_containerAdd containers (column_set, form, collapsible_panel)
card_previewPreview card JSON
card_sendSend card to chat

Memory (Letta Mode)

ToolDescription
core_memory_appendAppend to core memory blocks (persona/human/working_context)
core_memory_replaceReplace content in core memory blocks
rethinkRe-examine and evolve core memory (A-Mem style)
archival_memory_insertInsert into archival (vector-backed) long-term memory
archival_memory_searchSemantic search archival memory
recall_memory_searchSearch conversation history by date range

SubAgents & Skills

ToolDescription
SubAgentDelegate tasks to sub-agents (one-shot or interactive multi-turn)
SkillDiscover and load skills from workspace

Background Tasks

ToolDescription
task_statusCheck background task status
task_killTerminate a running background task
task_readRead background task output

MCP Integration

ToolDescription
ManageToolsAdd/remove/list/reload MCP servers
load_toolsActivate MCP tools by name to load parameter schemas
search_toolsSemantic search for available tools using embedding similarity

Other

ToolDescription
AskUserAsk user a multiple-choice question
TodoWrite / TodoListIn-memory TODO list management per session
LogsList/read xbot log files with filtering
oauth_authorizeSend OAuth authorization card to user

Permission Control Parameters

When permission control is enabled, Shell, FileCreate, and FileReplace gain additional parameters:

ParameterDescription
run_asOS user to execute as (e.g. root)
reasonRequired reason for execution (must be provided with run_as)