Session Files
session_filesList files in a session's workspace, with optional subdirectory path and pagination for large directories.
Instructions
List workspace files, optionally using a bounded cursor page. Use session_artifacts, not this, for only the files executed code produced; use session_read_file for one file's contents.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Subdirectory to list, relative to the workspace root; empty lists the root | |
| cursor | No | Opaque page cursor from a previous session_files call's response, to fetch the next page | |
| page_size | No | Max entries per page; omit for one unpaginated listing | |
| session_id | Yes | Id of the session whose workspace files to list |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||