Calculator
Safe math evaluation via AST parsing. Supports arithmetic, functions (sqrt, log, sin, cos, factorial, etc.), and constants (pi, e).
calculate(expression)
DateTime
Current date/time with timezone support and date difference calculations.get_current_time(timezone_name=), date_difference(date1, date2)
TextProcessing
Regex search/replace, text statistics, transformations, and pattern extraction (emails, URLs, phone numbers, etc.).regex_search, regex_replace, text_stats, text_transform, extract_patterns
FileOperations
Sandboxed file reading, writing, listing, and appending.str
default:"."
Root directory. All paths are sandboxed to this location.
bool
default:true
Enable
write_file and append_to_file tools. Set to False for read-only access.int
default:1048576
Maximum file read size in bytes (default: 1 MB).
read_file, list_files, write_file (if writable), append_to_file (if writable)
HTTPRequests
Make HTTP calls with optional domain restrictions.Set[str]
Domain allowlist. Empty or
None allows all domains.int
default:30
Request timeout in seconds.
Dict[str, str]
Headers included in every request.
http_get, http_post, http_put, http_patch, http_delete
JSONOperations
Parse, query (dot notation + wildcards), transform, and diff JSON data.parse_json, query_json, transform_json, compare_json
Query paths support dot notation (users.0.name), array indices, and wildcards (items.*.id).
Shell
Execute shell commands with safety controls.Set[str]
If set, only these base commands are allowed. Overrides blocked list.
Set[str]
Commands blocked by default:
rm, sudo, kill, chmod, shutdown, and other destructive operations.int
default:30
Command timeout in seconds.
str
Working directory for command execution.
run_command
WebSearch
Web search (DuckDuckGo by default) and URL content fetching.int
default:5
Maximum search results to return.
Callable
Custom search function. Signature:
(query: str, max_results: int) -> str. Default uses DuckDuckGo.bool
default:true
Enable the
fetch_url tool for reading web page content.search_web, fetch_url (if enabled)
The default DuckDuckGo provider requires
duckduckgo-search, which is lazy-imported at first use.MacOS
Control a Mac like a human: screen capture, mouse/keyboard input, app management, file operations, AppleScript, and system info. Requires the Definable Desktop Bridge to be running.screenshot, read_screen, find_text_on_screen, click, type_text, press_key, scroll, drag, open_app, quit_app, activate_app, list_running_apps, open_url, list_windows, focus_window, find_element, get_ui_tree, click_element, set_element_value, read_file, list_files, write_file, move_file, get_clipboard, set_clipboard, run_applescript, system_info, get_battery, set_volume, send_notification
Optional dep: pip install 'definable[desktop]' (adds websockets for DesktopInterface)