Skip to content

web_applyCookies

Add cookies to the current browser context, e.g. to restore a session saved with web_getStorageState. Navigate afterwards to use them.

Source

  • Kind: class-backed
  • Class: xyz.block.trailblaze.playwright.tools.PlaywrightNativeApplyCookiesTool

Contract

  • Visible to LLM: yes (surface_to_llm: true)
  • Recordable: yes (is_recordable: true)
  • Host-only: no (requires_host: false)

Input schema

Optional parameters

  • cookiesJson — String JSON string: a Playwright storageState object (its cookies field is read) or a bare cookie array, e.g. [{“name”:”sid”,”value”:”abc”,”domain”:”.example.com”,”path”:”/”}].

Output

Returns: string (opaque text content)

Typed result schemas (kind: query | action, MCP structuredContent) are not yet carried by the resolved manifest — this section will gain detail when that lands.