Use Cases
- AI Agent Integration: Provide tool schemas directly to AI agents for code execution
- Dynamic Capability Discovery: Determine what tools and packages are available in a specific environment
- Environment Introspection: Understand the capabilities and configuration of a VM instance
- Tool Configuration: Get structured information about available development tools
Response Structure
The response includes comprehensive information about the instance and available tools:Tool Schema Examples
Python Data Science Environment
For a profile configured with Python, pandas, matplotlib, and Jupyter:Node.js Development Environment
For a Node.js profile with npm, Express, and development tools:Dynamic Schema Generation
The tool schemas are dynamically generated based on:- Profile Configuration: Base packages and language runtime
- Installed Packages: Detected packages and their versions
- Environment Capabilities: Available tools and utilities
- Usage Examples: Context-aware examples based on the environment
Integration Patterns
OpenAI Function Calling
The schemas are compatible with OpenAI’s function calling format:Anthropic Claude
The schemas work with Claude’s tool use:Error Responses
Instance Not Ready
Instance Not Found
Best Practices
- Schema Caching: Tool schemas are relatively stable - cache them to reduce API calls
- Environment Verification: Check the
instance_status
to ensure the instance is ready - Tool Selection: Use appropriate tools based on the available environment capabilities
- Error Handling: Always verify the instance exists and is ready before using tool schemas
- Profile Matching: Different profiles will have different tool capabilities - choose the right profile for your use case
Authorizations
API key authentication using Bearer token format: 'Bearer rk_live_<key>'
Path Parameters
UUID of the profile
Room identifier