AcpFileSystem

The client file system an AcpAgent offers (fs/read_text_file, fs/write_text_file), e.g. a workspace or a folder the user shared. Paths are absolute, as the agent sends them.

Properties

Link copied to clipboard
open val readOnly: Boolean

Only reading is offered when true.

Functions

Link copied to clipboard
abstract suspend fun read(path: String, line: Int?, limit: Int?): String

The file's text, from 1-based line and at most limit lines when given.

Link copied to clipboard
open suspend fun write(path: String, content: String)