Retrieves a list of all code execution contexts currently active in the sandbox.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/cloudflare/sandbox-sdk/llms.txt
Use this file to discover all available pages before exploring further.
Method Signature
Parameters
This method takes no parameters.Returns
Array of code execution contexts
Example
Example: Cleanup Old Contexts
Notes
- Returns all contexts regardless of language
- Contexts are ordered by creation time (oldest first)
- Each context maintains independent state
- Use this to audit resource usage or implement cleanup policies
See Also
- createCodeContext - Create a new context
- deleteCodeContext - Delete a context
- CodeContext type - Type reference