Get the passage around a highlight
get_annotation_contextRetrieve the text surrounding a saved highlight to expand on a passage without fetching the whole chapter. Set how many characters of context to include before and after.
Instructions
Return the passage around a specific highlight — the text before
and after, with the highlight itself wrapped in «...». Use
this to expand on a highlight without fetching the whole chapter.
Works for non-DRM EPUBs downloaded to this Mac; fails with a clear message for DRM-protected books, iCloud-only books, or older annotations that lack the chapter hint.
Args: annotation_id: The annotation's numeric ID. chars_before: Chars of context before the highlight (0–5000). Default 500. chars_after: Chars of context after the highlight (0–5000). Default 500.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chars_after | No | ||
| chars_before | No | ||
| annotation_id | Yes |