create_note
Create new notes in Notion with titles, content, and optional tags for organizing meetings, ideas, references, or quick memos.
Instructions
在笔记库中创建一篇新笔记。
Args: title: 笔记标题(必填) content: 笔记正文(必填,支持纯文本/Markdown) note_type: 笔记类型,可选:会议记录 | 想法 | 参考 | 速记,默认速记 tags: 标签列表,如 ["前端", "架构"],可选
Returns: 创建成功的笔记详情
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | ||
| content | Yes | ||
| note_type | No | 速记 | |
| tags | No |
Implementation Reference
- tools/notes.py:78-102 (handler)The handler function that executes the logic to create a note by preparing the data and calling the client.
def create_note( title: str, content: str, note_type: str = "速记", tags: Optional[list[str]] = None, ) -> dict: """ 在笔记库中创建一篇新笔记。 Args: title: 笔记标题(必填) content: 笔记正文(必填,支持纯文本/Markdown) note_type: 笔记类型,可选:会议记录 | 想法 | 参考 | 速记,默认速记 tags: 标签列表,如 ["前端", "架构"],可选 Returns: 创建成功的笔记详情 """ data = NoteCreate( title=title, content=content, type=NoteType(note_type), tags=tags or [], ) return get_client().create_note(data).model_dump() - server.py:50-50 (registration)Tool registration for 'create_note' using mcp.tool decorator.
mcp.tool(create_note)