ass_list_attachments
List font and graphic attachments in ASS subtitle documents, using magic-byte sniffing to verify their true type and provide detailed metadata like size and SHA-256.
Instructions
List [Fonts]/[Graphics] attachments with a magic-byte sniff.
Args:
doc_id: document id or None for the current document.
kind: "font"/"fonts" or "image"/"graphics" to restrict
the listing; None returns both sections.
Returns:
{"doc_id", "count", "attachments": [ ... ]}. Each attachment has
name, kind (the declared kind), section, key,
data_lines, encoded_chars, decoded (is the payload valid
base64), size (exact decoded size, or encoded*3/4 when the data
is not valid base64 — size_exact says which), sha256,
magic (first 8 decoded bytes, hex), sniff (font, image
or unknown from the magic bytes), line_indices and error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | ||
| doc_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||