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.read_file, list_files, write_file (if writable), append_to_file (if writable)
HTTPRequests
Make HTTP calls with optional domain restrictions.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.Commands blocked by default:
rm, sudo, kill, chmod, shutdown, and other destructive operations.run_command
WebSearch
Web search (DuckDuckGo by default) and URL content fetching.Custom search function. Signature:
(query: str, max_results: int) -> str. Default uses DuckDuckGo.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)