fix(cli): Output screenshot as base64 string when no path provided (#83)

* fix(cli): print screenshot base64 when no path

* chore(docs): update docs and SKILL.md

* add test for screenshot with path arg

* more minimal readme + skill change
This commit is contained in:
jaydenfyi
2026-01-17 20:18:06 -06:00
committed by GitHub
parent 5e08e5d077
commit 4112234371
4 changed files with 21 additions and 3 deletions
+5
View File
@@ -208,6 +208,11 @@ pub fn print_response(resp: &Response, json_mode: bool) {
println!("\x1b[32m✓\x1b[0m Screenshot saved to {}", path);
return;
}
// Screenshot base64
if let Some(base64) = data.get("base64").and_then(|v| v.as_str()) {
println!("{}", base64);
return;
}
// Default success
println!("\x1b[32m✓\x1b[0m Done");
}