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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user