Skip to content

Vibe coding a plugin? 😎 Teach your agent Modlumi first. Works with Claude Code, Codex, Cursor and more.

PluginFile

A file the user chose in a file dialog. The plugin may read it, and write it when the user chose it in a save dialog; it reaches no other file. Reads and writes are whole files, of at most 256 MB.

readonly name: string

The file’s name, without its folder.

readBytes(): Uint8Array

Uint8Array


readText(): string

Reads the file as UTF-8 text.

string


writeBytes(bytes): void

ArrayBuffer | Uint8Array<ArrayBufferLike>

void


writeText(text): void

Replaces the file’s content; only for files chosen to save.

string

void