Skip to main content

Tools Reference

Forge provides a comprehensive set of built-in tools that enable AI agents to interact with your system, manage files, process data, and communicate with users. This reference documents all available tools and their parameters.

Note: These tools are used internally by Forge's AI agents and are not meant to be directly called by developers. This reference is provided for understanding what capabilities agents have access to within your system.

User Interface Tools

tool_forge_display_show_user

Displays formatted markdown content to the user in the terminal.

Parameters

ParameterTypeRequiredDescription
contentstringYesMarkdown content to display to the user

Features

  • Rich markdown formatting in terminal output
  • Support for headers, lists, tables, code blocks, and text emphasis
  • Properly rendered using the termimad library
  • Improves readability of complex information

When to Use

Agents use this tool when they need to present:

  • Structured information with clear hierarchy
  • Tabular data
  • Code snippets with syntax highlighting
  • Step-by-step instructions
  • Visual emphasis for important points

File System Tools

tool_forge_fs_read

Reads file contents at a specified path.

Parameters

ParameterTypeRequiredDescription
pathstringYesAbsolute path to the file

tool_forge_fs_create

Creates or overwrites a file with specified content.

Parameters

ParameterTypeRequiredDescription
pathstringYesAbsolute path to the file
contentstringYesContent to write to the file
overwritebooleanNoWhether to overwrite if file exists (default: false)

tool_forge_fs_patch

Modifies files with targeted text operations on matched patterns.

Parameters

ParameterTypeRequiredDescription
pathstringYesAbsolute path to the file
patchesarrayYesList of patch operations to apply

Patch Operations

OperationDescription
prependAdd content before the matched text
appendAdd content after the matched text
replaceReplace the matched text with new content
swapExchange the matched text with another text

tool_forge_fs_remove

Removes a file at a specified path.

Parameters

ParameterTypeRequiredDescription
pathstringYesAbsolute path to the file

tool_forge_fs_list

Lists files and directories at a specified path.

Parameters

ParameterTypeRequiredDescription
pathstringYesAbsolute path to the directory

tool_forge_fs_info

Retrieves metadata about a file or directory.

Parameters

ParameterTypeRequiredDescription
pathstringYesAbsolute path to the file or directory

Searches for text patterns across files using regex.

Parameters

ParameterTypeRequiredDescription
pathstringYesDirectory to search in (recursively)
regexstringYesRegular expression pattern to search for
file_patternstringNoGlob pattern to filter files (e.g., "*.js")

Network Tools

tool_forge_net_fetch

Retrieves content from URLs as markdown or raw text.

Parameters

ParameterTypeRequiredDescription
urlstringYesURL to fetch content from
rawbooleanNoWhether to return raw content instead of markdown (default: false)
max_lengthnumberNoMaximum characters to return (default: 40000)
start_indexnumberNoStarting character index for pagination (default: 0)

Process Tools

tool_forge_process_shell

Executes shell commands with safety measures.

Parameters

ParameterTypeRequiredDescription
commandstringYesShell command to execute
cwdstringYesWorking directory for command execution