filesystem

List directory

List direct children using an absolute path or a path relative to the requested location, including parents and siblings outside its directory. Entry paths remain relative to the requested location; listing does not switch locations.

get/api/fs/list

Request

  • Base URL: https://opencode.ai (the document declares no server; this is the origin it was published from)
  • URL: https://opencode.ai/api/fs/list
  • Auth: none required

Query parameters

directorystring nullable
pathstring nullable

An absolute path or a path relative to the requested location. Defaults to the location directory.

Response

Success

Changes

No recorded changes to this operation across all 1 revision of this API.