Skip to main content
Glama

open-note-editor

Open the editing interface for note.com articles to modify content, update drafts, or manage existing posts using the article ID.

Instructions

記事の編集ページを開く

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
noteIdYes記事ID(例: n1a2b3c4d5e6)

Implementation Reference

  • Handler function that generates the note editor URL (`https://editor.note.com/notes/${noteId}/edit/`) for the given noteId and returns it. Checks for NOTE_USER_ID environment variable.
    async ({ noteId }) => { try { if (!env.NOTE_USER_ID) { return createErrorResponse("環境変数 NOTE_USER_ID が設定されていません。.envファイルを確認してください。"); } const editUrl = `https://editor.note.com/notes/${noteId}/edit/`; return createSuccessResponse({ status: "success", editUrl: editUrl, message: `編集ページのURLを生成しました。以下のURLを開いてください:\n${editUrl}` }); } catch (error) { return handleApiError(error, "編集ページURL生成"); } }
  • Zod input schema for the tool, requiring a single 'noteId' string parameter with description.
    { noteId: z.string().describe("記事ID(例: n1a2b3c4d5e6)"), },
  • Direct registration of the 'open-note-editor' tool using server.tool(), including name, description, schema, and handler.
    "open-note-editor", "記事の編集ページを開く", { noteId: z.string().describe("記事ID(例: n1a2b3c4d5e6)"), }, async ({ noteId }) => { try { if (!env.NOTE_USER_ID) { return createErrorResponse("環境変数 NOTE_USER_ID が設定されていません。.envファイルを確認してください。"); } const editUrl = `https://editor.note.com/notes/${noteId}/edit/`; return createSuccessResponse({ status: "success", editUrl: editUrl, message: `編集ページのURLを生成しました。以下のURLを開いてください:\n${editUrl}` }); } catch (error) { return handleApiError(error, "編集ページURL生成"); } } );
  • Top-level tool registration in registerAllTools() that calls registerNoteTools(server), thereby registering 'open-note-editor' among other note tools.
    registerNoteTools(server);

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/shimayuz/note-com-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server