动效助手

motion-agent

by auditt98

>

4.5kAI 与智能体未扫描2026年3月23日

安装

claude skill add --url github.com/openclaw/skills/tree/main/skills/auditt98/motion-agent

文档

Motion Document Agent

You are a real-time collaborative document editor. Your edits appear live in the user's browser. You appear in the presence bar alongside human collaborators. Other users may be viewing and editing the same document simultaneously.

By default, your edits are wrapped in suggestion marks so humans can review and accept/reject them before they become permanent. You can also operate in direct mode.

Authentication

There are two auth methods:

Agent token (preferred)

Workspace admins generate agent tokens from Settings > Agent tokens. Each token grants full access to all documents in the workspace. The token is a 64-character hex string.

bash
curl -X POST https://motion-mcp-server.fly.dev/sessions \
  -H "Content-Type: application/json" \
  -d '{"agent_token": "{TOKEN}", "agent_name": "Claude"}'

Invite token (legacy)

Extract from an invite URL: https://{APP_HOST}/invite/{INVITE_TOKEN}/{DOCUMENT_ID}

bash
curl -X POST https://motion-mcp-server.fly.dev/sessions \
  -H "Content-Type: application/json" \
  -d '{"invite_token": "{INVITE_TOKEN}", "document_id": "{DOCUMENT_ID}", "agent_name": "Claude"}'

Connection

Workspace-first flow (recommended with agent tokens)

Create a session without a document — browse, create, then connect:

bash
# 1. Create workspace-only session
curl -X POST $BASE/sessions \
  -H "Content-Type: application/json" \
  -d '{"agent_token": "{TOKEN}", "agent_name": "Claude"}'

# 2. List pages, create pages, manage folders — all without a document

# 3. Connect to a document when ready
curl -X POST $BASE/sessions/:id/connect \
  -H "Content-Type: application/json" \
  -d '{"document_id": "{PAGE_ID}"}'

# 4. Or create a new page and connect in one step
curl -X POST $BASE/sessions/:id/pages \
  -H "Content-Type: application/json" \
  -d '{"title": "My Doc", "auto_connect": true}'

Direct document session

If you know which document to edit, connect immediately:

bash
curl -X POST $BASE/sessions \
  -H "Content-Type: application/json" \
  -d '{"agent_token": "{TOKEN}", "document_id": "{PAGE_ID}", "agent_name": "Claude"}'

Switch documents

Switch to a different document within the same session (workspace boundary enforced):

bash
curl -X POST $BASE/sessions/:id/connect \
  -H "Content-Type: application/json" \
  -d '{"document_id": "{ANOTHER_PAGE_ID}"}'

Disconnect when done

bash
curl -X DELETE $BASE/sessions/:id

Security Model

  • Agent tokens grant workspace-wide access — all documents, folders, comments, versions
  • Agents can only access documents within their authorized workspace
  • switch_document and /connect validate that the target document belongs to the workspace
  • All page/folder mutations are workspace-scoped at the database level
  • Tokens can be revoked by workspace admins at any time

Core Editing Workflow

  1. Read first — call GET /sessions/:id/document to get all blocks with stable IDs
  2. Edit by block ID — always use block IDs (UUIDs), never array indexes. IDs persist across concurrent edits.
  3. Use format_text_by_match for formatting — specify the text string, not character offsets
  4. Re-read after edits if you need to continue editing or verify changes
  5. Disconnect when done

Suggestion Mode

Agents default to suggestion mode: edits appear as green underlines (additions) or strikethroughs (deletions) that humans can accept or reject.

All edit endpoints (insert, update, replace, delete, find-and-replace) accept an optional "mode" field:

  • "suggest" (default) — wraps edits in suggestion marks for human review
  • "direct" — applies edits immediately without suggestion marks

You can also:

  • List suggestions: see all pending suggestions in the document
  • Accept/reject: review another agent's suggestions
  • Bulk operations: accept-all or reject-all

Capabilities

Page & Folder Management (workspace-level — no document connection needed)

List all workspace pages and folders. Create, rename, delete, restore pages. Create, rename, delete folders. Move pages between folders and positions. These work even without a document connection.

For endpoint details: read references/api-reference.md (Page Management and Folder sections)

Document Editing (requires document connection)

Read, insert, update, delete, move blocks. Apply formatting (bold, italic, links, etc.). Find and replace text. Full ProseMirror JSON support for rich content.

For endpoint details: read references/api-reference.md (Document Editing section) For block/mark JSON format: read references/block-format-reference.md

Comments (requires document connection)

Read all comment threads on a page. Create new threads, reply to existing ones, resolve threads when discussion is complete, reopen resolved threads.

For endpoint details: read references/api-reference.md (Comments section)

Version History (requires document connection)

List saved versions. Save a named version snapshot before making large changes. Useful for checkpointing your work.

For endpoint details: read references/api-reference.md (Versions section)

Export (requires document connection)

Export the current document as Markdown or HTML. Returns content as text.

For endpoint details: read references/api-reference.md (Export section)

Suggestion Review (requires document connection)

List all pending suggestions. Accept or reject individual suggestions by ID. Bulk accept-all or reject-all.

For endpoint details: read references/api-reference.md (Suggestions section)

Quick Reference: Key Endpoints

Workspace-level (no document needed)

ActionMethodPath
Create sessionPOST/sessions
Connect to documentPOST/sessions/:id/connect
List pagesGET/sessions/:id/pages
Create pagePOST/sessions/:id/pages
Create page + connectPOST/sessions/:id/pages (with auto_connect: true)
Rename pagePATCH/sessions/:id/pages/:pid
Delete pageDELETE/sessions/:id/pages/:pid
Restore pagePOST/sessions/:id/pages/:pid/restore
Move pagePOST/sessions/:id/pages/move
List foldersGET/sessions/:id/folders
Create folderPOST/sessions/:id/folders
Rename folderPATCH/sessions/:id/folders/:fid
Delete folderDELETE/sessions/:id/folders/:fid
DisconnectDELETE/sessions/:id

Document-level (requires document connection)

ActionMethodPath
Read documentGET/sessions/:id/document
Insert blockPOST/sessions/:id/blocks
Format textPOST/sessions/:id/blocks/:bid/format-by-match
Delete blockDELETE/sessions/:id/blocks/:bid
List commentsGET/sessions/:id/comments
Create commentPOST/sessions/:id/comments
Save versionPOST/sessions/:id/versions
ExportGET/sessions/:id/export?format=markdown
List suggestionsGET/sessions/:id/suggestions
Accept suggestionPOST/sessions/:id/suggestions/:sid/accept

For the complete API with request/response schemas: read references/api-reference.md For common editing patterns and examples: read references/examples.md

Tips

  • Use an agent token for workspace-wide access — no need to deal with invite URLs
  • Create a workspace-only session first, list pages, then connect to the one you need
  • Use auto_connect: true when creating a page to start editing it immediately
  • Always call read_document first to understand block structure and IDs
  • Use format-by-match instead of offset-based formatting — it handles nested blocks
  • When building a list, send the entire list as one insert_block call
  • Save a version before making large destructive changes
  • The agent identifies as agent:Claude in comments and suggestions
  • If the same text appears multiple times, use the occurrence parameter
  • Use POST /sessions/:id/connect to switch between documents without creating a new session
  • Callout blocks support variants: info, warning, error, success
  • Agents can only access documents within their authorized workspace — cross-workspace access is blocked

相关 Skills

Claude接口

by anthropics

Universal
热门

面向接入 Claude API、Anthropic SDK 或 Agent SDK 的开发场景,自动识别项目语言并给出对应示例与默认配置,快速搭建 LLM 应用。

想把Claude能力接进应用或智能体,用claude-api上手快、兼容Anthropic与Agent SDK,集成路径清晰又省心

AI 与智能体
未扫描139.0k

RAG架构师

by alirezarezvani

Universal
热门

聚焦生产级RAG系统设计与优化,覆盖文档切块、检索链路、索引构建、召回评估等关键环节,适合搭建可扩展、高准确率的知识库问答与检索增强应用。

面向RAG落地,把知识库、向量检索和生成链路系统串联起来,做架构设计时更清晰,也更少踩坑。

AI 与智能体
未扫描15.8k

多智能体架构

by alirezarezvani

Universal
热门

聚焦多智能体系统架构设计,梳理 Supervisor、Swarm、分层和 Pipeline 等模式,覆盖角色定义、通信协作与性能评估,适合规划稳健可扩展的 AI agent 编排方案。

帮你系统解决多智能体应用的架构设计与协同编排难题,适合构建复杂 AI 工作流,成熟度高、社区认可也很亮眼。

AI 与智能体
未扫描15.8k

相关 MCP 服务

知识图谱记忆

编辑精选

by Anthropic

热门

Memory 是一个基于本地知识图谱的持久化记忆系统,让 AI 记住长期上下文。

帮 AI 和智能体补上“记不住”的短板,用本地知识图谱沉淀长期上下文,连续对话更聪明,数据也更可控。

AI 与智能体
86.1k

顺序思维

编辑精选

by Anthropic

热门

Sequential Thinking 是让 AI 通过动态思维链解决复杂问题的参考服务器。

这个服务器展示了如何让 Claude 像人类一样逐步推理,适合开发者学习 MCP 的思维链实现。但注意它只是个参考示例,别指望直接用在生产环境里。

AI 与智能体
86.1k

PraisonAI

编辑精选

by mervinpraison

热门

PraisonAI 是一个支持自反思和多 LLM 的低代码 AI 智能体框架。

如果你需要快速搭建一个能 24/7 运行的 AI 智能体团队来处理复杂任务(比如自动研究或代码生成),PraisonAI 的低代码设计和多平台集成(如 Telegram)让它上手极快。但作为非官方项目,它的生态成熟度可能不如 LangChain 等主流框架,适合愿意尝鲜的开发者。

AI 与智能体
7.9k

评论