Reference

Aegis tools

Aegis exposes a curated, self-describing tool registry. Every tool carries a risk classification — read-only, safe-write, destructive, or interactive — and the agent loop uses it to decide when to prompt, what to auto-continue, and how to handle interrupts. The tables below list every available tool, what it does, and the arguments it accepts.

Read-only tools

Pure readers and searchers. They never mutate files, can run in parallel, and need no confirmation before execution.

ToolWhat it doesRequired argsOptional args
analyze_audioSends an MP3 audio file to AI Studio for analysis and transcription.mp3_path—
analyze_imageCaptures one or more local images and embeds them inline as base64 for multimodal processing.—image_path, image_paths
ast_searchPerforms structural AST searches: all subclasses of a class, or every function/method carrying a given decorator.query_type, target_nameroot_dir
diff_filesReturns a unified diff between two files.path_a, path_b—
escape_stringEscapes text so nested-string execution cannot break across Python, AppleScript, JavaScript, and Shell layers.text, target—
fetch_urlFetches a URL and intelligently extracts the main content (title, description, article text).urlmax_length
find_referencesFinds all references to a symbol (variable, function, class) across the project using AST.symbol_nameroot_dir
get_goalReturns the short-term or long-term goal from the active session or goals.txt.goal_type—
grep_searchSearches for regex patterns, streaming and limiting output for memory efficiency.—query, dir_path, include_pattern, recursive, queries, max_results, word_match, exclude_pattern, include_dirs, literal, context_lines, show_scope, files_with_matches, group_by_file, max_count, include_patterns
http_requestSends an HTTP request and returns structured JSON (status, headers, body, timing).urlmethod, headers, data, timeout, follow_redirects
lint_python_filePerforms lightweight static analysis and syntax validation on a Python file.file_path—
list_directoryLists the contents of a directory to map the file system, with optional recursion and stats.—dir_path, recursive, max_depth, include_stats
lsp_queryRuns semantic queries — definition, references, completion, hover — against the Python language server.action, file_path, line, column—
python_evalExecutes a block of Python code in a stateful, persistent evaluation session.code—
read_fileReads the content of one or more files, with line-range extraction, repr mode, and force refresh.—file_path, file_paths, files, as_repr, show_lines, refresh, start_line, end_line
read_symbolsReturns class names, function signatures, line ranges, and optionally full source content.file_pathinclude_content
retrieve_resultRetrieves the full content of a previously truncated tool output by its retrieval key.key—
search_textSearches for exact (fixed) text across files, optimized for memory efficiency.querydir_path, include_pattern, recursive, max_results
visual_diffDiffs two images and returns a pixel-level comparison report with base64 visual markers.—x, y, width, height, delay_seconds, file1_path, file2_path
web_searchSearches the web across multiple engines with cascading fallback and site or time filtering.querynum_results, site_filter, time_range

Safe-write tools

Localized editors. They modify only the targeted block, create a backup, and run syntax validation before applying the change.

ToolWhat it doesRequired argsOptional args
apply_and_verifyApplies an edit and runs a verification command, rolling back automatically if the check fails.file_path, test_command, original_text, replacement_text—
ast_modifySurgically modifies Python using AST — replace a symbol or insert into a class.file_path, symbol_path, new_codeaction
edit_small_blockReplaces a unique block of text in a file, with backup, syntax validation, and raw-repr diagnostics.file_path, original_block, replacement_block—
fuzzy_patchFuzzy-replaces a block of text in a file by sequence similarity matching when exact text is unavailable.file_path, search_block, replacement_blockthreshold
insert_linesInserts one or more lines at a specified line number with explicit base indentation.file_path, line_number, line_text, indentation_countexpected_content, threshold
regex_replaceReplaces occurrences of a regex pattern in a file with a string or an evaluated Python expression.file_path, pattern, replacementis_eval
rename_symbolSafely renames a symbol (function, class, variable) across the project using AST.old_name, new_nameroot_dir
replace_stringReplaces every occurrence of a string within a file or multiple files, creating a backup.—file_path, target, replacement, file_paths
set_goalSets a short-term or long-term goal in the active session or goals.txt.goal_type, textsession_name
write_fileWrites text contents to a file, creating parent directories as needed.file_path, contents—

Destructive tools

High-impact operations that change state, spawn processes, or modify the real system. The agent loop gates these behind confirmation and treats them as non-parallelizable.

ToolWhat it doesRequired argsOptional args
colabManages Google Colab session VMs through the colab CLI — create, exec, run, list files, upload/download, install, stop. No browser needed.actionsession, text, file, path, remote_path, local_path, gpu, tpu, timeout, keep, n_lines, log_type, packages, requirement, output_image, script_args
computer_useControls the real macOS cursor with stateful, delta-based movement and captures the screen.—action, dx, dy, clicks, button, color, click
delete_linesDeletes specified lines from a file, verifying each line's content before removal.file_path, linesforce_delete, threshold
emergency_interruptSends an emergency interrupt signal to a target agent.target_agentmessage
get_agent_activityReturns the last N activity entries for a target agent.target_agentn
interactive_termManages a stateful interactive pseudoterminal (PTY) session.actioncommand, text, rows, cols
lvcsInteracts with the local version control system — status, commit, log, restore, diff, and more.actionmessage, author, target_hash, force, file, page, page_size
message_agentsCommunicates with other agents in multi-agent mode — view, message, and check inbox.actiontarget_agent, message, wait_for_response, timeout_seconds, filter_sender, mark_read
recover_turnRecovers the full text of a conversation turn that has been compressed or hidden.turn_number, kwargs—
reload_toolsReloads the tool registry transactionally, rolling back to the prior toolset if any module fails to reload.——
shellExecutes a shell command in a persistent background process.commandwait_seconds
shell_inputSends text input to the currently running shell process's stdin.text—
shell_interactInteracts with the running shell process — read incremental output or send keystrokes.actiontext, tail_lines, wait_seconds
shell_wait_forExecutes a command and waits until a regex pattern appears in the output or a timeout is reached.command, regex_patterntimeout_seconds

Interactive tools

Stateful, long-lived sessions that drive a real web browser without stealing focus.

ToolWhat it doesRequired argsOptional args
browser_executeStateful browser interaction via Selenium — navigate, click, type, analyze, and run scripts.actionurl, selector, text, script

How risk is classified

Read-only tools never write and always run. Safe-write tools mutate a bounded target and require a backup plus verification. Destructive tools can change system state or spawn processes, so the harness treats them as serial and confirmation-gated. Interactive tools maintain a session across calls and are the only tools allowed to drive long-lived state.

The registry is self-describing: each tool exposes its name, argument schema, and risk level, and the agent loop reads that metadata to decide prompting, parallelization, and interrupt behavior.