Skip to main content

mobium cookies

This tool on every surface: CLI · MCP · Python · JavaScript · Go · Java · .NET

Read, set or clear the current WebView's cookies

Vibium's cookies command, on a WebView — mobium context WEBVIEW_... first.

With no argument, lists the cookies the page's URL is sent, HttpOnly ones included. With a name and a value, sets one and reads it back. clear deletes them all, or those with the name given. An Android app's WebViews share one cookie store, so a cookie set here is set for all of them.

Usage​

mobium cookies [clear [name] | <name> <value>] [flags]

Flags​

FlagTypeDefaultWhat it does
--domainstringwith a name and value: the cookie's domain (default: the page's host)
--expiresfloatwith a name and value: seconds since the epoch (default: a session cookie)
--http-onlyboolwith a name and value: HttpOnly, so the page's scripts cannot read it
--pathstringwith a name and value: the cookie's path (default: /)
--same-sitestringwith a name and value: Strict, Lax or None
--secureboolwith a name and value: sent only over https

And the global flags.

Examples​

Read the WebView's cookies​

mobium cookies

Printed on an Android 15 emulator:

no cookies for about:blank

mobium cookies on an Android 15 emulator

mobium cookies on an Android 15 emulator

mobium cookies clear session

More, from mobium cookies --help​

mobium cookies
mobium cookies session abc123 --http-only --secure
mobium cookies clear session
mobium cookies clear

The tool​

cookies calls app_cookies; its arguments and what every client calls it are there.