margin-local-docs.openai.chatgpt.sitemargin-local-docs.openai.chatgpt.site tools

DeveloperVerified

Margin Local WebMCP tools

A private, local-first documentation editor where people and agents can collaborate in the margin.

10 tools1 ways to use

What an agent can do on Margin Local

A private, local-first documentation editor where people and agents can collaborate in the margin. This page documents every listed tool: what it does, how to install it, and the input fields an agent should send.

WebMCP tools on Margin Local

Manage a list

list_documents

Read the full list_documents page

List documents stored in this device-local Margin workspace. Optionally match titles or text and return short snippets.

How to install

Open the margin-local-docs.openai.chatgpt.site website and ask your browser agent to use list_documents

Install browse first, then run the command in a terminal. WebMCP tools run directly on the website and do not need a package install.

Run with an agent

Use the list_documents tool on margin-local-docs.openai.chatgpt.site with query: <string>, limit: <integer>. Return the structured result and cite the source page.

Input contract

  • query string Optional case-insensitive title or document text query.
  • limit integer Maximum number of documents to return.

Open the source definition

Get data

get_document

Read the full get_document page

Get one Margin document as stable rich-text JSON and plain text, with comment context for only that document.

How to install

Open the margin-local-docs.openai.chatgpt.site website and ask your browser agent to use get_document

Install browse first, then run the command in a terminal. WebMCP tools run directly on the website and do not need a package install.

Run with an agent

Use the get_document tool on margin-local-docs.openai.chatgpt.site with document_id: <string>. Return the structured result and cite the source page.

Input contract

  • document_id string Stable document ID returned by list_documents.

Open the source definition

Get data

open_document

Read the full open_document page

Open an existing local note by ID and make it the document currently displayed in the Margin editor.

How to install

Open the margin-local-docs.openai.chatgpt.site website and ask your browser agent to use open_document

Install browse first, then run the command in a terminal. WebMCP tools run directly on the website and do not need a package install.

Run with an agent

Use the open_document tool on margin-local-docs.openai.chatgpt.site with document_id: <string>. Return the structured result and cite the source page.

Input contract

  • document_id string Stable note ID returned by list_documents.

Open the source definition

Add or update

create_document

Read the full create_document page

Create and open a new document in this device-local Margin workspace. Content accepts lightweight Markdown or plain text and is stored as structured rich text.

How to install

Open the margin-local-docs.openai.chatgpt.site website and ask your browser agent to use create_document

Install browse first, then run the command in a terminal. WebMCP tools run directly on the website and do not need a package install.

Run with an agent

Use the create_document tool on margin-local-docs.openai.chatgpt.site with title: <string>, content: <string>, format: <string>. Return the structured result and cite the source page.

Input contract

  • title string Title of the new local document.
  • content string Document body. Markdown supports headings, lists, checklists, quotes, code, links, and basic emphasis.
  • format string

Open the source definition

Add or update

update_document

Read the full update_document page

Rename or update one local Margin document. Replace or append lightweight Markdown/plain text; existing comments are recovered against their exact quoted context or marked detached.

How to install

Open the margin-local-docs.openai.chatgpt.site website and ask your browser agent to use update_document

Install browse first, then run the command in a terminal. WebMCP tools run directly on the website and do not need a package install.

Run with an agent

Use the update_document tool on margin-local-docs.openai.chatgpt.site with document_id: <string>, title: <string>, content: <string>, format: <string>, mode: <string>. Return the structured result and cite the source page.

Input contract

  • document_id string Stable ID returned by list_documents or create_document.
  • title string Optional replacement title.
  • content string Document content to replace or append.
  • format string
  • mode string Replace the document body or append new rich-text blocks to it.

Open the source definition

Get data

list_comments

Read the full list_comments page

List anchored or detached comment threads in the local Margin workspace, filterable by document and status.

How to install

Open the margin-local-docs.openai.chatgpt.site website and ask your browser agent to use list_comments

Install browse first, then run the command in a terminal. WebMCP tools run directly on the website and do not need a package install.

Run with an agent

Use the list_comments tool on margin-local-docs.openai.chatgpt.site with document_id: <string>, status: <string>. Return the structured result and cite the source page.

Input contract

  • document_id string Optional stable document ID.
  • status string

Open the source definition

Add or update

add_comment

Read the full add_comment page

Add an agent-authored comment anchored by exact quote and semantic context. Ambiguous quotes are never attached arbitrarily.

How to install

Open the margin-local-docs.openai.chatgpt.site website and ask your browser agent to use add_comment

Install browse first, then run the command in a terminal. WebMCP tools run directly on the website and do not need a package install.

Run with an agent

Use the add_comment tool on margin-local-docs.openai.chatgpt.site with document_id: <string>, body: <string>, exact_quote: <string>, occurrence: <integer>, prefix: <string>, suffix: <string>, agent_name: <string>. Return the structured result and cite the source page.

Input contract

  • document_id string
  • body string
  • exact_quote string Exact text currently present in the document.
  • occurrence integer One-based occurrence when the exact quote repeats.
  • prefix string Text immediately before the quote for disambiguation.
  • suffix string Text immediately after the quote for disambiguation.
  • agent_name string

Open the source definition

Get data

reply_to_comment

Append an agent reply to an existing local Margin comment thread.

How to install

Open the margin-local-docs.openai.chatgpt.site website and ask your browser agent to use reply_to_comment

Install browse first, then run the command in a terminal. WebMCP tools run directly on the website and do not need a package install.

Run with an agent

Use the reply_to_comment tool on margin-local-docs.openai.chatgpt.site with comment_id: <string>, body: <string>, agent_name: <string>. Return the structured result and cite the source page.

Input contract

  • comment_id string
  • body string
  • agent_name string

Open the source definition

Get data

resolve_comment

Mark a local Margin comment thread as resolved.

How to install

Open the margin-local-docs.openai.chatgpt.site website and ask your browser agent to use resolve_comment

Install browse first, then run the command in a terminal. WebMCP tools run directly on the website and do not need a package install.

Run with an agent

Use the resolve_comment tool on margin-local-docs.openai.chatgpt.site with comment_id: <string>. Return the structured result and cite the source page.

Input contract

  • comment_id string

Open the source definition

Get data

reopen_comment

Reopen a resolved local Margin comment thread.

How to install

Open the margin-local-docs.openai.chatgpt.site website and ask your browser agent to use reopen_comment

Install browse first, then run the command in a terminal. WebMCP tools run directly on the website and do not need a package install.

Run with an agent

Use the reopen_comment tool on margin-local-docs.openai.chatgpt.site with comment_id: <string>. Return the structured result and cite the source page.

Input contract

  • comment_id string

Open the source definition