woopcode docs
v1.0.0 GitHub

run_terminal

Runs a terminal command in the current project. For commands that finish on their own (tests, builds, installs). Do not use for starting servers or long-running processes. Runs a shell command, so it is gated by your approval mode.

Parameters#

Parameter Type Required Description
command string Yes Command to execute
timeout number No Timeout in seconds (default: 300). Command will be killed if it exceeds this time. Raise it for a build or test run expected to take longer.

Example#

run_terminal({ command: "…" })

Approval#

Gated by the approval mode.

See also#

  • Tools — every tool, and which of them can change your files
  • Approval modes — what gates the tools that change things

Added in woopcode@0.6.0