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:
+5
-1
@@ -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="
|
||||
"##
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user