Workspace: Bash
Execute a shell command inside the agent’s workspace
Path Parameters
Request Body
Response
ok).Example Request
Notes
- The workspace is per-agent and persists between calls, so files created here remain available to subsequent workspace operations for the same agent.
- Commands are run as an unprivileged user. Avoid commands that require elevated permissions.
See Also
Authorizations
API Key for authentication
Path Parameters
Body
Shell command to execute inside the workspace. Supports installing packages (apt-get, pip, npm), running scripts, and general shell operations.
"pip install pandas && python -c 'import pandas; print(pandas.__version__)'"
Maximum execution time in seconds. The command is killed if it exceeds this limit.
1 <= x <= 180060
Working directory for the command, relative to workspace root. Defaults to the workspace root.
"my_project"
Response
Successful Response
Standard output captured from the command
"2.2.0\n"
Standard error captured from the command
""
Process exit code. 0 indicates success, non-zero indicates failure.
0
Execution duration in seconds
3.21

