Expand description
Output helpers for CLI subcommands: aligned tables and JSON.
Functionsยง
- image_
dimensions (width, height)of a PNG or JPEG from its header bytes, without an image crate.Nonefor anything else or a truncated header.- print_
json - Print a serializable value as pretty JSON, followed by a newline.
- print_
table - Print rows as a simple aligned table.
- terminal_
width - Best-effort terminal width for human table formatting.
- write_
private_ file - Write
bytestopathand restrict it to the current user (0600on Unix). Shared by the file-writing MCP tools; the cookie/fetch CLI writers follow the same contract.