Skip to content

Commit a3d7f5c

Browse files
committed
docs(bash): document env parameter in tool description
1 parent 4df173b commit a3d7f5c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/opencode/src/tool/bash.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ Before executing the command, please follow these steps:
2525
Usage notes:
2626
- The command argument is required.
2727
- You can specify an optional timeout in milliseconds. If not specified, commands will time out after 120000ms (2 minutes).
28+
- You can specify an optional env parameter to set environment variables for the command (e.g., `env: { "MY_VAR": "value" }`). These are merged with the existing environment.
2829
- It is very helpful if you write a clear, concise description of what this command does in 5-10 words.
2930
- If the output exceeds ${maxLines} lines or ${maxBytes} bytes, it will be truncated and the full output will be written to a file. You can use Read with offset/limit to read specific sections or Grep to search the full content. Do NOT use `head`, `tail`, or other truncation commands to limit output; the full output will already be captured to a file for more precise searching.
3031

0 commit comments

Comments
 (0)