Tools
A brainlet's model can only do what its tool grants allow. Grant a tool on the brainlet's Spec tab, then say in the prompt what to use it for: models use a tool more reliably when the prompt names it (“fetch https://wttr.in/Boston?format=j1 with http_fetch”, “use pdftotext on the input file”). Without grants a brainlet only writes text.
http_fetch network
Make HTTP requests (GET, POST, …) to the allowed hosts; can reduce a web page to its text.
Requests reach only the brainlet's allowed sites: hosts like api.example.com or *.example.com, and the hosts of the linked services it uses. Anything else is refused and shows up in the run's details. A service's key is added only on its own hosts.
Make an HTTP request. Supports GET, POST, PUT, PATCH, DELETE. A web page (HTML) comes back as its readable text, preformatted blocks kept as laid out; set text=false for the raw HTML. Use body for inline payloads up to 64 KB; use body_path for larger payloads (up to 10 MB file under /work). Combine with grep to filter to specific lines.
| url* | string | URL to request. |
| body | string | Inline request body (max 64 KB). Mutually exclusive with body_path. |
| body_path | string | Path to a file under /work to use as request body (max 10 MB). Mutually exclusive with body. |
| grep | string | Optional regex. When set, only matching lines are returned, prefixed with line number. |
| headers | object | JSON object of request headers. Keys are header names, values are header values. |
| method | string | HTTP method (GET, POST, PUT, PATCH, DELETE). Default GET. |
| text | boolean | Default true: an HTML response is returned as its visible text. false returns the raw HTML. Other content types are always returned as they came. |
browser network
Open pages in a real browser (JavaScript runs): screenshots, and the rendered text of pages http_fetch can't read. Pages must be on the allowed sites; up to 20 a run.
Requests reach only the brainlet's allowed sites: hosts like api.example.com or *.example.com, and the hosts of the linked services it uses. Anything else is refused and shows up in the run's details. A service's key is added only on its own hosts.
Open a page and take a PNG screenshot, saved under /work/out for respond_file.
| url* | string | The page to open (http or https, on an allowed site) |
| full_page | boolean | Capture the whole page, not just the viewport |
| height | integer | Viewport height in pixels (default 800, max 4000) |
| wait_for | string | A CSS selector to wait for before the screenshot |
| width | integer | Viewport width in pixels (default 1280, max 1920) |
Open a page and return its rendered text or Markdown.
| url* | string | The page to open (http or https, on an allowed site) |
| format | string | text (default) or markdown (headings, links, lists kept) |
| selector | string | Only the text of the first element matching this CSS selector |
| wait_for | string | A CSS selector to wait for before reading |
search
Search the web, news, images and videos (Brave Search): titles, URLs and snippets, up to 10 searches a run. Reading a result is http_fetch's job, so its host must be allowed.
Web search: pages with title, URL and description.
| query* | string | What to search for |
| count | integer | How many results (default 10; at most 20, images 200) |
| country | string | Two-letter country code for results, e.g. US |
| freshness | string | pd, pw, pm or py (past day, week, month, year), or a date range |
| offset | integer | Page of results to skip to (0-9) |
| safesearch | string | off, moderate or strict |
News articles, newest first when freshness is set.
| query* | string | What to search for |
| count | integer | How many results (default 10; at most 20, images 200) |
| country | string | Two-letter country code for results, e.g. US |
| freshness | string | pd, pw, pm or py (past day, week, month, year), or a date range |
| offset | integer | Page of results to skip to (0-9) |
| safesearch | string | off, moderate or strict |
Images, with their page and image URLs.
| query* | string | What to search for |
| count | integer | How many results (default 10; at most 20, images 200) |
| country | string | Two-letter country code for results, e.g. US |
| safesearch | string | off, moderate or strict |
Videos, with title, URL, duration and thumbnail.
| query* | string | What to search for |
| count | integer | How many results (default 10; at most 20, images 200) |
| country | string | Two-letter country code for results, e.g. US |
| freshness | string | pd, pw, pm or py (past day, week, month, year), or a date range |
| offset | integer | Page of results to skip to (0-9) |
| safesearch | string | off, moderate or strict |
shell network
Run shell commands in the sandbox: curl, jq, python3, ffmpeg, ImageMagick, pdftotext, tesseract and more. Network only to the allowed hosts.
Requests reach only the brainlet's allowed sites: hosts like api.example.com or *.example.com, and the hosts of the linked services it uses. Anything else is refused and shows up in the run's details. A service's key is added only on its own hosts.
Run a shell command in the sandbox (Alpine Linux, 30 s timeout, output capped). Installed programs: compact output: rtk (rtk ls, rtk find, rtk grep and rtk read keep output short); images: magick, identify, file, exiftool; audio and video: ffmpeg, ffprobe; pdf and documents: pdfinfo, pdftotext, pdftoppm, qpdf, gs, mutool (pdftotext reads scanned pages too: a page with no text layer is OCR'd (tesseract) and stderr says which); ocr: tesseract (English); archives: zip, unzip, 7z, tar, gzip, bzip2, xz, zstd, lz4, brotli; data and text: jq, yq, sqlite3, rg, diff, patch, tree, python3 (python3 has requests, lxml, beautifulsoup4 and pillow); network: curl, wget, dig, nslookup, openssl (only the allowed hosts are reachable); nothing else is installed. Prefer rtk ls, rtk find, rtk grep and rtk read to keep output compact.
| command* | string | The shell command to execute. Prefer rtk subcommands for compact output. |
file
Read, write, list, move and delete files in the run's scratch directory.
Delete a file or directory. Set recursive=true to delete a non-empty directory.
| path* | string | Path to delete within the work directory. |
| recursive | boolean | When true, delete directories recursively. Default false (fails on non-empty dirs). |
List files in a directory (uses rtk ls for compact output).
| glob | string | Optional glob pattern to filter entries. |
| max_entries | integer | Max entries to return (default 200). |
| path | string | Directory to list. Defaults to work directory. |
Create a directory (including parents). Silently succeeds if it already exists.
| path* | string | Directory path within the work directory. |
Move or rename a file. Fails if the destination exists.
| from* | string | Source path within the work directory. |
| to* | string | Destination path within the work directory. |
Read content from a file
| path* | string | Path to the file within the work directory. |
Get file metadata as JSON (size, mtime, type, mime).
| path* | string | Path to the file within the work directory. |
Write content to a file
| content* | string | Content to write. |
| path* | string | Path to the file within the work directory. |
image
Resize, crop, rotate, convert and inspect images; read or strip EXIF data.
Overlay one image onto another (e.g. watermarks, badges).
| base* | string | Base (background) image path. |
| output* | string | Output image path. |
| overlay* | string | Overlay image path. |
| x | integer | X offset for overlay (default 0). |
| y | integer | Y offset for overlay (default 0). |
Convert an image to another format. Set format explicitly to override extension-based inference.
| input* | string | Input image path. |
| output* | string | Output image path. |
| format | string | Override output format (e.g. jpg, png, webp). |
| quality | integer | Quality for lossy formats (1-100, default 85). Ignored for lossless. |
Crop a region of an image. Bounds-checks against image dimensions.
| height* | integer | Crop height in pixels. |
| input* | string | Input image path. |
| output* | string | Output image path. |
| width* | integer | Crop width in pixels. |
| x* | integer | X offset (pixels from left). |
| y* | integer | Y offset (pixels from top). |
Read EXIF metadata from an image as JSON.
| path* | string | Path to the image. |
| fields | string | Comma-separated field names to return. Defaults to curated set. Use '*' for all. |
Remove all EXIF metadata from an image (creates a new file, non-destructive).
| input* | string | Input image path. |
| output* | string | Output image path (metadata-stripped). |
Get image metadata as structured JSON (width, height, format, channels, file_size, mime).
| path* | string | Path to the image. |
Resize an image non-destructively (separate input/output). Use fit to control aspect ratio behavior.
| input* | string | Input image path. |
| output* | string | Output image path. |
| fit | string | contain (default) | cover | stretch. contain fits within box preserving aspect. cover fills box cropping overflow. stretch forces exact dimensions. |
| height | integer | Target height in pixels. |
| width | integer | Target width in pixels. |
Rotate an image by degrees. Positive = clockwise.
| degrees* | integer | Rotation in degrees (can be negative). |
| input* | string | Input image path. |
| output* | string | Output image path. |
Create a thumbnail. Aspect-preserving, faster than resize, strips metadata.
| input* | string | Input image path. |
| output* | string | Output image path. |
| max_dim | integer | Max dimension in pixels (default 256). |
data
Encode and decode base64 and URL strings.
Decode a base64-encoded string. Result may contain non-UTF-8 bytes when the original was binary. For binary outputs, prefer writing to a file via file_write before further processing.
| input* | string | Base64-encoded string to decode. |
Encode a string as base64.
| input* | string | String to encode. Capped at 32 KB. |
Decode a URL-encoded string.
| input* | string | URL-encoded string to decode. |
URL-encode a string for use in a query string (e.g., ?q=...).
| input* | string | String to URL-encode. |
Programs for shell
With shell granted, the model can run these programs in the brainlet's sandbox (Alpine Linux). Nothing else is installed.
| Compact output | rtkrtk ls, rtk find, rtk grep and rtk read keep output short |
| Images | magickidentifyfileexiftool |
| Audio and video | ffmpegffprobe |
| PDF and documents | pdfinfopdftotextpdftoppmqpdfgsmutoolpdftotext reads scanned pages too: a page with no text layer is OCR'd (tesseract) and stderr says which |
| OCR | tesseractEnglish |
| Archives | zipunzip7ztargzipbzip2xzzstdlz4brotli |
| Data and text | jqyqsqlite3rgdiffpatchtreepython3python3 has requests, lxml, beautifulsoup4 and pillow |
| Network | curlwgetdignslookupopensslonly the allowed hosts are reachable |
MCP servers
A brainlet can also call the tools of an MCP server you link: add it under Services (its URL and a token), add the service to the brainlet's Allowed sites, and grant its tools there by name, or all of them. The model sees each granted tool as <service>__<tool> next to the tools above, and can't call the others.
The token is added only to the brainlet's own MCP calls. A request the model makes itself with http_fetch or shell to the same server goes without it, so the model can't use your token outside the tools you granted.
Limits
- Each run gets a fresh scratch directory,
/work; nothing carries over between runs. - A tool result the model sees is cut at 8 KB; ask for the part you need (http_fetch's
grep,rtk,jq). - A shell command stops after 30 seconds.
- The model gets at most the brainlet's max iterations of tool calls per run.