Skip to content

Core Tools

Shell access, file operations, and task tracking.

Execute shell commands on the host system.

ParameterTypeRequiredDescription
commandstringyesShell command to execute
timeout_msintegernoTimeout in milliseconds (default 30000). Ignored when background=true
directorystringnoWorking directory (relative to workspace)
backgroundbooleannoRun with no timeout; result delivered as a system message

When background is true, the tool returns immediately and the command runs detached. On completion, the output is posted as a [shell-command completed] system message into the session. GHOST sees this message on the next conversation turn.

Read file contents with optional pagination.

ParameterTypeRequiredDescription
pathstringyesFile path
offsetintegernoStarting line number
limitintegernoNumber of lines to read

Returns contents with line numbers for precise editing.

Create or overwrite a file.

ParameterTypeRequiredDescription
pathstringyesFile path
contentstringyesFile contents

Make targeted string replacements in a file.

ParameterTypeRequiredDescription
pathstringyesFile path
old_stringstringyesText to find
new_stringstringyesReplacement text

Session-scoped working memory for tracking multi-step tasks.

ActionDescription
planCreate a TODO list with items
updateUpdate a single item’s status
batch_updateUpdate multiple items at once