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.

http_fetch

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*stringURL to request.
bodystringInline request body (max 64 KB). Mutually exclusive with body_path.
body_pathstringPath to a file under /work to use as request body (max 10 MB). Mutually exclusive with body.
grepstringOptional regex. When set, only matching lines are returned, prefixed with line number.
headersobjectJSON object of request headers. Keys are header names, values are header values.
methodstringHTTP method (GET, POST, PUT, PATCH, DELETE). Default GET.
textbooleanDefault 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.

browser_screenshot

Open a page and take a PNG screenshot, saved under /work/out for respond_file.

url*stringThe page to open (http or https, on an allowed site)
full_pagebooleanCapture the whole page, not just the viewport
heightintegerViewport height in pixels (default 800, max 4000)
wait_forstringA CSS selector to wait for before the screenshot
widthintegerViewport width in pixels (default 1280, max 1920)
browser_read

Open a page and return its rendered text or Markdown.

url*stringThe page to open (http or https, on an allowed site)
formatstringtext (default) or markdown (headings, links, lists kept)
selectorstringOnly the text of the first element matching this CSS selector
wait_forstringA CSS selector to wait for before reading

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.

shell

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*stringThe shell command to execute. Prefer rtk subcommands for compact output.

file

Read, write, list, move and delete files in the run's scratch directory.

file_delete

Delete a file or directory. Set recursive=true to delete a non-empty directory.

path*stringPath to delete within the work directory.
recursivebooleanWhen true, delete directories recursively. Default false (fails on non-empty dirs).
file_list

List files in a directory (uses rtk ls for compact output).

globstringOptional glob pattern to filter entries.
max_entriesintegerMax entries to return (default 200).
pathstringDirectory to list. Defaults to work directory.
file_mkdir

Create a directory (including parents). Silently succeeds if it already exists.

path*stringDirectory path within the work directory.
file_move

Move or rename a file. Fails if the destination exists.

from*stringSource path within the work directory.
to*stringDestination path within the work directory.
file_read

Read content from a file

path*stringPath to the file within the work directory.
file_stat

Get file metadata as JSON (size, mtime, type, mime).

path*stringPath to the file within the work directory.
file_write

Write content to a file

content*stringContent to write.
path*stringPath to the file within the work directory.

image

Resize, crop, rotate, convert and inspect images; read or strip EXIF data.

image_compose

Overlay one image onto another (e.g. watermarks, badges).

base*stringBase (background) image path.
output*stringOutput image path.
overlay*stringOverlay image path.
xintegerX offset for overlay (default 0).
yintegerY offset for overlay (default 0).
image_convert

Convert an image to another format. Set format explicitly to override extension-based inference.

input*stringInput image path.
output*stringOutput image path.
formatstringOverride output format (e.g. jpg, png, webp).
qualityintegerQuality for lossy formats (1-100, default 85). Ignored for lossless.
image_crop

Crop a region of an image. Bounds-checks against image dimensions.

height*integerCrop height in pixels.
input*stringInput image path.
output*stringOutput image path.
width*integerCrop width in pixels.
x*integerX offset (pixels from left).
y*integerY offset (pixels from top).
image_exif_read

Read EXIF metadata from an image as JSON.

path*stringPath to the image.
fieldsstringComma-separated field names to return. Defaults to curated set. Use '*' for all.
image_exif_strip

Remove all EXIF metadata from an image (creates a new file, non-destructive).

input*stringInput image path.
output*stringOutput image path (metadata-stripped).
image_info

Get image metadata as structured JSON (width, height, format, channels, file_size, mime).

path*stringPath to the image.
image_resize

Resize an image non-destructively (separate input/output). Use fit to control aspect ratio behavior.

input*stringInput image path.
output*stringOutput image path.
fitstringcontain (default) | cover | stretch. contain fits within box preserving aspect. cover fills box cropping overflow. stretch forces exact dimensions.
heightintegerTarget height in pixels.
widthintegerTarget width in pixels.
image_rotate

Rotate an image by degrees. Positive = clockwise.

degrees*integerRotation in degrees (can be negative).
input*stringInput image path.
output*stringOutput image path.
image_thumbnail

Create a thumbnail. Aspect-preserving, faster than resize, strips metadata.

input*stringInput image path.
output*stringOutput image path.
max_dimintegerMax dimension in pixels (default 256).

data

Encode and decode base64 and URL strings.

data_base64_decode

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*stringBase64-encoded string to decode.
data_base64_encode

Encode a string as base64.

input*stringString to encode. Capped at 32 KB.
data_url_decode

Decode a URL-encoded string.

input*stringURL-encoded string to decode.
data_url_encode

URL-encode a string for use in a query string (e.g., ?q=...).

input*stringString 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 outputrtkrtk ls, rtk find, rtk grep and rtk read keep output short
Imagesmagickidentifyfileexiftool
Audio and videoffmpegffprobe
PDF and documentspdfinfopdftotextpdftoppmqpdfgsmutoolpdftotext reads scanned pages too: a page with no text layer is OCR'd (tesseract) and stderr says which
OCRtesseractEnglish
Archiveszipunzip7ztargzipbzip2xzzstdlz4brotli
Data and textjqyqsqlite3rgdiffpatchtreepython3python3 has requests, lxml, beautifulsoup4 and pillow
Networkcurlwgetdignslookupopensslonly 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.