add_bookmark
Add a highlighted bookmark to a WeRead chapter by submitting a verbatim sentence; it auto-validates the quote and returns a bookmarkId for later style changes or deletion.
Instructions
划线:abstract 必须逐字摘自该章原文(自动算 range,匹配失败拒绝划线)。 colorStyle: 1红 2紫 3蓝 4绿 5黄;style: 0直线 1荧光笔 2波浪(3 无效)。默认 5+2 黄波浪。 返回 bookmarkId,改样式/删除时用它。
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": {
"book_id": "<book_id>",
"chapter_uid": "<chapter_uid>",
"abstract": "<abstract>"
},
"name": "add_bookmark"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| style | No | 2 | |
| book_id | Yes | ||
| abstract | Yes | ||
| chapter_uid | Yes | ||
| color_style | No | 5 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |