Skip to main content
Glama

Open a Document Picture-in-Picture window

browser_picture_in_picture

Open a floating, always-on-top mini window to keep a URL visible while using another tab; it clicks the page first to satisfy user-activation and closes with the tab.

Instructions

Open a floating always-on-top mini window showing a URL (Document Picture-in-Picture). MEASURED: requestWindow throws "requires user activation" when called cold, so this tool first performs a real click in the page to satisfy that requirement. PiP windows are per-document: closing the tab closes the window.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "browser_picture_in_picture"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoURL to show (default: the current page)
widthNoWindow width (default 320)
heightNoWindow height (default 240)
contextNoTab context id (default: the active tab)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Adds real value beyond the readOnlyHint=false annotation: it discloses that a genuine click is synthesized in the page first (a side effect that could trigger page handlers) and that the window's lifetime is tied to the tab. What is left unsaid is whether the click target matters or whether the synthetic click can have unintended consequences on arbitrary pages.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, each carrying distinct information: what it does, the non-obvious activation workaround, and the lifecycle constraint. The capability statement is front-loaded with zero filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Four optional parameters are fully covered by the schema, and the description handles the two behaviors an agent could not infer. The only gap is that, with no output schema, it does not say what the call returns (a window handle, id, or nothing), which matters for follow-up calls.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so url, width, height, and context are all documented in the schema itself. The description adds no syntax, format, or interaction detail for any of them, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource — 'Open a floating always-on-top mini window showing a URL' — and names the underlying API (Document Picture-in-Picture). No sibling tool offers this capability, so the agent can identify it immediately from the name-plus-description pair.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied by the capability description (a floating, always-on-top mini window), but it never states when to prefer this over browser_new_window, browser_split_view, or browser_set_window_state. No exclusions or prerequisites are given beyond the user-activation workaround.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools