List Files • AI Agent SDK

list_files: List files in a sandbox directory.

list_files

Async

Method

</div>

This is a method of the SandboxProtocol class in the protocols module.

List files in a sandbox directory.

Signature

python
async def list_files(path: str) -> List[str]

Parameters

ParamField str

Directory path within sandbox

Returns

ResponseField List[str]

List of file paths

Source

View on GitHub

praisonaiagents/sandbox/protocols.py at line 327