Set the share card (WeChat card title, description, cover)
set_share_cardChange the card a page shows when its link is forwarded or pasted in WeChat: title, description (desc) and cover. Stored per page, takes effect immediately, no new version needed: the next time the link is fetched the card is new.
Precedence (per item): set here > the live version’s manifest.share > the default (page name / first paragraph / LivePage brand image).
cover is a path inside the package (e.g. img/cover.png) and must be in the live version; keep that image in the package when you publish later versions, or the card falls back to no image.
Two cards: cover is the link card (opening the page in WeChat and forwarding via the top-right “···”, a 1:1 thumbnail on the right); mini_cover is only the mini-program card (5:4 large image, sent with “Send to friend” in the mini program). Omit mini_cover and the mini-program card uses the same image as cover; mini_cover="auto" uses the automatic card (page 1 for PDF/PPT, otherwise a text title card).
Pass only what changes; null for an item clears the per-page value and falls back to manifest.share / the default.
The result gives the card’s actual title / description / cover after the change (the same one WeChat fetches).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"proposal_id": "<proposal_id>"
},
"name": "set_share_card"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| desc | No | Card description, up to 300 characters; null clears it | |
| cover | No | Cover: a path inside the live version’s package; null clears it | |
| title | No | Card title, up to 120 characters; null clears it | |
| mini_cover | No | 小程序卡片单独的封面:包内相对路径或 auto;null = 清掉(跟 cover 同一张) | |
| proposal_id | Yes |