Add base64 input for eval command (#340)

* Add base64 input for eval command

Adds -b/--base64 flag to decode script from base64, avoiding shell escaping issues for AI agents.

* Document base64 eval in SKILL.md
This commit is contained in:
Chris Tate
2026-02-02 18:52:43 -06:00
committed by GitHub
parent bdf674a27e
commit 9c45f82193
5 changed files with 92 additions and 3 deletions
+9 -1
View File
@@ -214,7 +214,15 @@ agent-browser dialog dismiss # Dismiss dialog
### JavaScript
```bash
agent-browser eval "document.title" # Run JavaScript
agent-browser eval "document.title" # Simple expressions only
agent-browser eval -b "<base64>" # Any JavaScript (recommended)
```
Use `-b`/`--base64` for reliable execution. Shell escaping with nested quotes and special characters is error-prone.
```bash
# Base64 encode your script, then:
agent-browser eval -b "ZG9jdW1lbnQucXVlcnlTZWxlY3RvcignW3NyYyo9Il9uZXh0Il0nKQ=="
```
## Global options