Install
openclaw skills install long-context-shellRuns long or continuous shell commands with file-backed logs, truncated previews, and fast log scanning. Invoke when shell output may be large, ongoing, or hard to inspect directly.
openclaw skills install long-context-shellUse this skill when a shell command is likely to produce long output, keep running, refresh continuously, or require structured monitoring instead of raw stdout.
watch, top, tail -f, ping, or log followerslong_context_shell_runRun a shell command in a detached process with file-backed logging.
Inputs
command (string, required): shell command to runwaitMs (number, optional): how long to wait before returning an initial status cardbackground (boolean, optional): force monitor-first mode and return quickly for later peeksheadLines (number, optional): lines to show from the beginning of the logtailLines (number, optional): lines to show from the end of the logBehavior
background is true, prefer a short initial wait and return control quicklylong_context_shell_peek later instead of rerunning the commandlong_context_shell_peekRead the latest state of an existing session or log file.
Inputs
sessionId (string, optional): previously returned session idlogPath (string, optional): direct path to a log file if session id is unavailableheadLines (number, optional): lines to show from the beginningtailLines (number, optional): lines to show from the endtimeQuery (string, optional): timestamp fragment to filter lines, such as 2026-03-24T10:15Behavior
timeQuery is present, return matching lines for that timestamp fragmentlong_context_shell_scanScan a large log for likely failures instead of manually reading the full file.
Inputs
sessionId (string, optional): previously returned session idlogPath (string, optional): direct path to a log filepatterns (array of strings, optional): custom match patternscontextLines (number, optional): surrounding lines to include around each matchlimit (number, optional): maximum number of matches to returnBehavior
error, exception, failed, fatal, and timeoutlong_context_shell_stopStop a running session when monitoring is no longer needed.
Inputs
sessionId (string, required): session to stoplong_context_shell_run for long or continuous commandsrunning, use long_context_shell_peek to monitor progressfailed or the preview is too short to explain the problem, use long_context_shell_scanwaitMs and inspect the first status card before increasing complexitybackground: true and observe with repeated long_context_shell_peektimeQuery with the startedAt timestamp prefix to zoom into a suspicious time slice without reading the whole logpreview is truncated, treat logPath as the source of truth and use scan before opening the whole filescan misses the real issue, retry with custom patterns that match the toolchain, framework, or service you are debugginglong_context_shell_runnode -e or a tiny script file when debugging behavior across shellslong_context_shell_stop so old sessions do not keep running in the backgroundnode manual-flow-test.js and inspect the printed status cards and scan outputlong_context_shell_scan over full-log manual review when output is largelong_context_shell_stop when a continuous command is no longer needed, especially for tail -f, watch, or similar monitoring sessionslong_context_shell_run({ command: "npm run build", waitMs: 1500 })long_context_shell_run({ command: "tail -f app.log", background: true, waitMs: 500 })long_context_shell_peek({ sessionId: "..." })long_context_shell_peek({ sessionId: "...", timeQuery: "2026-03-24T10:15" })long_context_shell_scan({ sessionId: "..." })node manual-flow-test.js