Skip to content

Built-in Tools Reference

xopcbot has a set of built-in tools for the Agent to call.

Tools List

ToolNameDescription
📄 Readread_fileRead file content (truncated to 50KB/500 lines)
✍️ Writewrite_fileCreate or overwrite file
✏️ Editedit_fileReplace text in file
📂 Listlist_dirList directory contents
💻 ShellshellExecute Shell command (truncated to 50KB)
🔍 SearchgrepSearch text in files
📄 FindfindFind files by conditions
🔍 Web Searchweb_searchSearch the web using Brave Search
📄 Web Fetchweb_fetchFetch web page content
📤 Messagesend_messageSend message to channel
🔍 Memory Searchmemory_searchSearch memory files
📄 Memory Getmemory_getRead memory snippets

📄 read_file

Read file content. Output automatically truncated to first 500 lines or 50KB.

Parameters

ParameterTypeRequiredDescription
pathstringFile path
limitnumberMaximum lines (default 500)

✍️ write_file

Create or overwrite a file.

Parameters

ParameterTypeRequiredDescription
pathstringFile path
contentstringFile content

✏️ edit_file

Replace specified text in a file.

Parameters

ParameterTypeRequiredDescription
pathstringFile path
oldTextstringText to replace
newTextstringReplacement text

📂 list_dir

List directory contents.


💻 shell

Execute Shell command. Output automatically truncated to last 50KB.

Limits

  • Timeout: 5 minutes
  • Output truncation: 50KB

🔍 grep

Search text in files.

Parameters

ParameterTypeRequiredDescription
patternstringSearch pattern (supports regex)
globstringFile matching pattern
pathstringSearch directory
ignoreCasebooleanIgnore case
literalbooleanPlain text matching
contextnumberNumber of context lines
limitnumberMaximum results (default 100)

📄 find

Find files by conditions.

Parameters

ParameterTypeRequiredDescription
patternstringFilename matching pattern
pathstringSearch directory
limitnumberMaximum results

Search the web using Brave Search API.

Configuration

bash
export BRAVE_SEARCH_API_KEY="your-api-key"

📄 web_fetch

Fetch web page content.


📤 send_message

Send message to configured channel.


Search memory files. Must be called before answering questions about previous work, decisions, etc.


📄 memory_get

Read snippets from memory files.


Security Limits

OperationLimit
File pathRestricted to workspace directory
Shell command5 minute timeout
File sizeMaximum 10MB

Released under the MIT License.