Caricamento in corso...
Caricamento in corso...
Last synced: Today, 22:00
Technical reference for the OpenClaw framework. Real-time synchronization with the official documentation engine.
Use this file to discover all available pages before exploring further.
OpenClaw runs shell commands through the
execprocessKey parameters:
commandyieldMsbackgroundtimeouttools.exec.timeoutSectimeout: 0elevatedgatewaynodenodepty: trueworkdirenvBehavior:
status: "running"sessionIdyieldMstools.exec.timeoutSectimeoutprocessexecyieldMsbackgroundOPENCLAW_SHELL=execprocesssleepWhen spawning long-running child processes outside the exec/process tools (for example, CLI respawns or gateway helpers), attach the child-process bridge helper so termination signals are forwarded and listeners are detached on exit/error. This avoids orphaned processes on systemd and keeps shutdown behavior consistent across platforms.
Environment overrides:
PI_BASH_YIELD_MSPI_BASH_MAX_OUTPUT_CHARSOPENCLAW_BASH_PENDING_MAX_OUTPUT_CHARSPI_BASH_JOB_TTL_MSConfig (preferred):
tools.exec.backgroundMstools.exec.timeoutSectools.exec.cleanupMstools.exec.notifyOnExittools.exec.notifyOnExitEmptySuccessActions:
listpolllogoffsetlimitwritedataeofsend-keyssubmitpastekillclearremoveNotes:
process poll/logprocesspolllogwritesend-keyssubmitpastekillprocess listnameprocess logoffsetlimitoffsetlimitoffsetlimitoffsetRun a long task and poll later:
json{ "tool": "exec", "command": "sleep 5 && echo done", "yieldMs": 1000 }
json{ "tool": "process", "action": "poll", "sessionId": "<id>" }
Start immediately in background:
json{ "tool": "exec", "command": "npm run build", "background": true }
Send stdin:
json{ "tool": "process", "action": "write", "sessionId": "<id>", "data": "y\n" }
Send PTY keys:
json{ "tool": "process", "action": "send-keys", "sessionId": "<id>", "keys": ["C-c"] }
Submit current line:
json{ "tool": "process", "action": "submit", "sessionId": "<id>" }
Paste literal text:
json{ "tool": "process", "action": "paste", "sessionId": "<id>", "text": "line1\nline2\n" }
© 2024 TaskFlow Mirror
Powered by TaskFlow Sync Engine