{"url_pattern":"^https?://mp\\.weixin\\.qq\\.com/.*$","site_name":"wechat","allowed_domains":null,"tools":[{"name":"insert_article","description":"Insert content into WeChat Official Account article editor (must be on editor page with action=edit)","inputSchema":{"type":"object","properties":{"title":{"type":"string","description":"Article title"},"content":{"type":"string","description":"Article content (HTML or plain text)"}},"required":["content"]},"handler":"(params) => {\n  // Set title if provided\n  if (params.title) {\n    const titleInput = document.querySelector('#title') || document.querySelector('[placeholder*=\"标题\"]');\n    if (titleInput) {\n      titleInput.value = params.title;\n      titleInput.dispatchEvent(new Event('input', { bubbles: true }));\n    }\n  }\n  // Find editor (ProseMirror or UEditor)\n  const editor = document.querySelector('.ProseMirror') || document.querySelector('.edui-body-container');\n  if (!editor) {\n    return { success: false, message: 'Editor not found. Make sure you are on the article edit page (URL contains action=edit)' };\n  }\n  // Insert content\n  editor.focus();\n  editor.innerHTML = params.content;\n  editor.dispatchEvent(new Event('input', { bubbles: true }));\n  return { success: true, message: 'Content inserted into WeChat editor' };\n}"},{"name":"navigate_to_draft","description":"Navigate from WeChat home to draft page","inputSchema":{"type":"object","properties":{},"required":null},"handler":"() => {\n  // Click 内容管理 menu\n  const contentMgmt = document.querySelector('[title=\"内容管理\"]');\n  if (contentMgmt) {\n    contentMgmt.click();\n    setTimeout(() => {\n      const draftLink = Array.from(document.querySelectorAll('a')).find(a => a.textContent.includes('草稿箱'));\n      if (draftLink) draftLink.click();\n    }, 800);\n    return { success: true, message: 'Navigating to draft page...' };\n  }\n  return { success: false, message: 'Content management menu not found' };\n}"},{"name":"create_new_article","description":"Click to create new article from draft page","inputSchema":{"type":"object","properties":{},"required":null},"handler":"() => {\n  const newCreateCard = document.querySelector('.weui-desktop-card_new');\n  if (newCreateCard) {\n    newCreateCard.click();\n    setTimeout(() => {\n      const writeLink = document.querySelector('li[data-type=\"0\"] a');\n      if (writeLink) {\n        writeLink.click();\n      }\n    }, 500);\n    return { success: true, message: 'Opening new article editor...' };\n  }\n  return { success: false, message: 'New creation card not found' };\n}"}]}