📸 ScreenshotsMCP

browser_cookies

Get, set, or clear cookies for the current browser session.

Parameters

ParameterTypeRequiredDefaultDescription
sessionIdstringYesSession ID from browser_navigate
actionstringYesget, set, or clear
namestringNoCookie name (required for set)
valuestringNoCookie value (required for set)
domainstringNoCookie domain (for set)
pathstringNo/Cookie path (for set)

Examples

Get all cookies

Show me all cookies on this page
Set an auth cookie named "session_token" with value "abc123"

Clear all cookies

Clear all cookies for this session

Notes

  • get returns all cookies for the current page domain
  • set creates or updates a cookie
  • clear removes all cookies from the browser context
  • Useful for testing authenticated flows — set session cookies to bypass login

On this page