Capture a screenshot of the current viewport.
encoding controls the return type:
"blob"(default) —Blobwith the right MIME type. WebKit: zero-copy mmap-backed store. Composes withBun.write(),new Response(),blob.bytes()."buffer"— NodeBuffer. WebKit: zero-copy (the same mmap'd pages wrapped as anArrayBufferthat munmap's on GC)."base64"— base64-encodedstring. Chrome: zero decode (CDP returns base64 natively). Direct Kittyt=dtransmission."shmem"—{ name, size }. The POSIX shm name is left linked; caller ownsshm_unlink. Kittyt=stransmission: passnameas the payload, Kitty unlinks after reading. Not on Windows.