Pinar
HomePlansWhat’s newHelp
Sign in
K

Get startedCaptures and pinsAI agentsProjects and collectionsCloud and plansPrivacy and data
Get started
Captures and pins
AI agents
Send visual context to an agentHandoff formats and destinationsAI features and how to test themAsk the assistantClose the agent review loopTroubleshoot copy and handoff warnings
Projects and collections
Cloud and plans
Privacy and data
Help/AI agents

Send visual context to an agent

Paste the complete Pinar bundle so the agent sees the comment, target, geometry, and shared image together.

4 min
Visual example: A successful finish confirms the result, closes the overlay, and leaves one correlated session bundle on the clipboard.

In this guide

  1. 1What to paste
  2. 2Screenshot and warnings
  3. 3How to deliver the copied bundle to an agent
  4. 4Let an agent work with Pinar through MCP
  5. 5Connect an agent to the local app
  6. 6Create and manage API keys
1

What to paste

Pinar writes plain Markdown and HTML to the clipboard. The text includes readable annotations plus a fenced pinar-visual-context JSON block. Paste both as one unit; the structured block is the machine-readable source of truth.

2

Screenshot and warnings

If the bundle lists an absolute Screenshot path, the local agent should open that single image; numbered badges are overlays. Warnings such as screenshot_missing, helper_unavailable, or viewer_unavailable describe degraded delivery but do not invalidate the comments and DOM context.

3

How to deliver the copied bundle to an agent

The Chrome extension never types into the agent composer. In Prompt mode, after Command+Enter / Alt+Enter, paste the clipboard yourself into Cursor, Claude, Codex, or Grok. The text begins by saying the pin notes may ask for a change or an explanation, and to treat selector and DOM path as complementary locators, followed by a fenced pinar-visual-context JSON block. If a Viewer URL is included, fetch it only when those details are not enough. In Link mode the agent receives only the session link and needs access to that .md (Pinar Cloud links are private and require an API key or MCP); Off only saves.

Treat captureId and pinId as identity, not labels to rewrite. Visual Context currently encodes schemaVersion 1; parseVisualCapture rejects a missing captureId and any schemaVersion other than 1 or the legacy 0. Follow only what the pins describe. If the person never pasted, ask them to copy again from Pinar instead of reconstructing pins from memory.

  • Paste the whole clipboard into the agent; do not retype comments or invent a new captureId.
  • Confirm the pasted text still contains a closed pinar-visual-context fence before you start editing code.
  • If nothing was pasted, ask for Command+Enter / Alt+Enter in Pinar and follow only the pin notes.
4

Let an agent work with Pinar through MCP

Pinar also exposes its stored sessions through the Model Context Protocol. An MCP client can list projects, collections, batches, sessions, pins, and pin comments, and can create, comment on, rename, move, reorder, and delete them.

The local Pinar service exposes MCP on your own machine without an account, login, or API key. Pinar Cloud requires an API key with the required scopes, and the key’s resource scope bounds what the agent can read, comment on, or change.

See Send visual context to an agent.

  • An agent-created session stores the page metadata without a screenshot, and an agent pin stores the comment with an optional locator instead of measured geometry.
  • MCP does not rehydrate or synchronize the in-browser draft; the extension remains the writer of the active draft, and a later explicit save replaces the stored session under the same id.
  • Sharing stays explicit: publish a share from the workspace, or let an agent with the scope to change shares publish or revoke it.
5

Connect an agent to the local app

The local Pinar app offers the same Model Context Protocol surface to agents that run on the same computer, and it is open by design: no account, login, or API key is involved. See Send visual context to an agent.

By default, the local MCP catalog lists only pinar.search to discover read and write APIs and pinar.execute to call them from a script. Each run allows 50 write attempts. Writes take effect immediately and are not transactional. Set PINAR_MCP_CODE_MODE=off in the local server environment to restore the classic catalog with individually callable tools.

List tools page their results, up to 50 items per page, so an agent walks a large workspace one page at a time. Reorder tools expect the complete list of items and reject a partial one before anything moves. See Send visual context to an agent.

  • Because the connection is local, the agent works only with the captures stored on this computer and never needs Pinar Cloud.
  • Most of the cloud tool surface is available locally; cloud extras include API key administration, shares, preferences, and collaborators.
6

Create and manage API keys

Pro accounts can create API keys in Pinar Cloud under Settings → “API keys”. Name the key and choose “No expiry” or any future date, without a 90-day limit. Choose its scopes: “Read” reads content; “Manage content” also allows changes; “Full” includes every scope except creating and revoking child keys; “Custom” lets you choose Read and Write for projects, collections, batches, sessions, pins, comments, shares, collaborators, preferences, and API keys.

A key can cover the whole account or one project, collection, session, or batch. Resource-bound keys allow content reading only. In Custom mode, selecting Write also selects Read; clearing Read clears Write. Existing keys keep the access they already had.

Copy the key before closing the dialog: the secret appears only once and cannot be recovered. The list shows scopes, resource, expiry, last use, and the parent key when applicable. History shows creations and revocations and lets you load more events. Revoking ends access immediately; requests for resources outside the key’s boundary receive a resource-not-found response.

Only Custom lets you authorize creating and revoking child keys through MCP. Each key can have up to five active children, with scopes contained in its own and an expiry no later than its own. Each account has up to 20 active keys, children included. Children cannot create more keys. Revoking the parent also revokes its children. Each child’s secret appears once; history records only creation and revocation.

With the right scopes, an MCP agent can read shares, read and update preferences, and list, invite, or revoke collaborators of owned collections. The app and MCP share a limit of 20 invitations per account per hour; only the invited person can accept. The web assistant reads shares, preferences, and collaborators, but does not manage keys, invite or revoke collaborators, or update preferences yet. See Send visual context to an agent.

When code mode is enabled in Pinar Cloud, MCP scripts make changes through pinar.execute within the API key’s scopes, and the server logs those calls.

  • Give each agent or automation its own key, so revoking one does not disturb the others.
  • Keys work with MCP clients that support custom headers and with the REST API and private Markdown links; the “API keys” panel explains how the key is used.
Still need context?See all in category

On this page

What to pasteScreenshot and warningsHow to deliver the copied bundle to an agentLet an agent work with Pinar through MCPConnect an agent to the local appCreate and manage API keys
Support Pinar development

Support Pinar's development directly: sponsor on GitHub or buy a coffee.

Buy Me a CoffeeSponsor on GitHub
Pinar·© 2026·Pinar v0.11.1
Terms of ServicePrivacy PolicyPinar Software License