actpkg.dev
Components

library/anydoc

v0.1.0 Signed

Convert Word, PowerPoint, Excel, OpenDocument, RTF, EPUB, CSV and PDF documents to GitHub-Flavored Markdown

by @library updated 2026-08-12 6.0 MB 0

Install

$ act pull actpkg.dev/library/anydoc

Capabilities

Moderate host access

Requests: Filesystem read-only.

  • wasi:filesystem Filesystem read-only

    ** (ro)

Risk Low Medium High

Tools · 3

act:tools interface — expand a tool for its input schema.

  • convert

    Convert a document to GitHub-Flavored Markdown, preserving headings, lists, tables and footnotes. Handles Word, PowerPoint, Excel, OpenDocument, RTF, EPUB, CSV and PDF. The format is detected from the content; pass `format` for CSV, which carries no signature.

    ParameterTypeDescription
    dataobject | nullInline document bytes, as a CBOR byte string — or the canonical `{"$bytes": "<base64>"}` envelope over JSON transports.
    pathstring | nullPath to a document on the host. Requires a `wasi:filesystem` read grant covering this path.
    formatvariantParser to use. Omit to detect from the content. Required for CSV, which carries no signature. An explicit value overrides detection.
    filenamestring | nullFilename to fall back on for format detection when the content carries no signature. Only the extension is used; content always wins over this, and it is ignored when `format` is given.

    Returns content.

  • detect

    Identify a document's format without converting it. Reports whether the format came from the content signature or only from the filename — an `extension` result on a format that should carry a signature means the file is not what its name claims. Much cheaper than convert.

    ParameterTypeDescription
    dataobject | nullInline document bytes, as a CBOR byte string — or the canonical `{"$bytes": "<base64>"}` envelope over JSON transports.
    pathstring | nullPath to a document on the host. Requires a `wasi:filesystem` read grant covering this path.
    filenamestring | nullFilename to fall back on when the content carries no signature. Only the extension is used. Content always wins over this.

    Returns content.

  • extract_assets

    Extract the images and embedded objects from a document, returned as image content parts with their media type and originating package part. Emits a manifest first, so you can call again with `ids` to fetch only what you need instead of pulling every asset. Not supported for PDF.

    ParameterTypeDescription
    idsarray | nullAsset ids to return bytes for. Omit to return all of them. The manifest always lists every asset regardless.
    dataobject | nullInline document bytes, as a CBOR byte string — or the canonical `{"$bytes": "<base64>"}` envelope over JSON transports.
    pathstring | nullPath to a document on the host. Requires a `wasi:filesystem` read grant covering this path.
    formatvariantParser to use. Omit to detect from the content.
    filenamestring | nullFilename to fall back on for format detection when the content carries no signature. Only the extension is used; content always wins over this, and it is ignored when `format` is given.

    Returns content.

Readme

No README provided.