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
+5 -1
View File
@@ -879,10 +879,13 @@ Examples:
r##"
agent-browser eval - Execute JavaScript
Usage: agent-browser eval <script>
Usage: agent-browser eval [options] <script>
Executes JavaScript code in the browser context and returns the result.
Options:
-b, --base64 Decode script from base64 (avoids shell escaping issues)
Global Options:
--json Output as JSON
--session <name> Use specific session
@@ -891,6 +894,7 @@ Examples:
agent-browser eval "document.title"
agent-browser eval "window.location.href"
agent-browser eval "document.querySelectorAll('a').length"
agent-browser eval -b "ZG9jdW1lbnQudGl0bGU="
"##
}