DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to add a custom URL lookup action to the popup with Openclip

Create an extension folder with one Openclip.json file that sends selected text to a search URL.

Short answer: Run mkdir -p ~/.openclip/extensions/com.example.lookup to create the extension folder; then create openclip.json in that folder with an identifier, a name, and an actions list; give the action "type": "url" and a url value that contains {query}. All steps.

Who it is forA researcher or analyst who looks up selected terms on the same reference site over and over.

The problemLooking up each selected term on a reference site means copying it, opening a browser, and pasting it into the search box.

The outcomeA Lookup action appears in the popup and opens the reference site search for the selected text.

What you need first

  • A Mac running macOS 14 or later
  • Accessibility permission granted to OpenClip
  • Homebrew for the recommended install

Steps

  1. Run mkdir -p ~/.openclip/extensions/com.example.lookup to create the extension folder. (inferred, check the README)
  2. Create openclip.json in that folder with an identifier, a name, and an actions list.
  3. Give the action "type": "url" and a url value that contains {query}.
  4. Select text in any app and choose the new Lookup action from the contextual bar.

Prompt for your agent

In the OpenClip repo at https://github.com/ganeshmshetty/openclip, create ~/.openclip/extensions/<identifier>/openclip.json with one url action whose url contains {query}. Expected output: the file exists and is valid JSON, and the action appears in the popup for selected text. Verify the JSON parses before testing it in the popup.

Caveat. The README shows the format only for a URL action, so shell, JavaScript, or AppleScript extensions need the developer guide linked from the README.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for ganeshmshetty/openclip and "Add a custom URL lookup action to the popup"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer