actpkg.dev
Components

library/filesystem

v0.3.5 Signed

File system operations (read, write, list, search, move)

by @library updated 2026-07-16 326 KB 0

Install

$ act pull actpkg.dev/library/filesystem

Capabilities

Elevated host access

Requests: Filesystem read/write.

  • wasi:filesystem Filesystem read/write

    ** (rw)

Risk Low Medium High

Tools · 9

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

  • read_file

    Read the contents of a text file

    ParameterTypeDescription
    path*stringPath to the file to read

    Returns content.

  • read_binary_file

    Read a binary file and return its raw content with detected MIME type

    ParameterTypeDescription
    path*stringPath to the binary file

    Returns content.

  • write_file

    Write text content to a file (creates new or overwrites existing)

    ParameterTypeDescription
    path*stringPath to write to
    content*stringContent to write

    Returns content.

  • append_file

    Append text content to a file

    ParameterTypeDescription
    path*stringPath to append to
    content*stringContent to append

    Returns content.

  • list_directory

    List files and directories. Supports glob filtering and recursive search.

    ParameterTypeDescription
    globstring | nullGlob pattern to filter by name (e.g. '*.rs', 'test_*')
    path*stringPath to the directory to list
    max_depthinteger | nullMaximum depth when recursive (default 10)
    recursiveboolean | nullRecurse into subdirectories (default false)

    Returns content.

  • move_file

    Move or rename a file or directory

    ParameterTypeDescription
    source*stringSource path
    destination*stringDestination path

    Returns content.

  • copy_file

    Copy a file to a new location

    ParameterTypeDescription
    source*stringSource file path
    destination*stringDestination file path

    Returns content.

  • delete_file

    Delete a file

    ParameterTypeDescription
    path*stringPath to the file to delete

    Returns content.

  • delete_directory

    Delete a directory (optionally recursive)

    ParameterTypeDescription
    path*stringPath to the directory to delete
    recursiveboolean | nullWhether to delete recursively (including contents). Default false.

    Returns content.

Readme

No README provided.