Tool Execution
CTP defines three execution modes that determine where and how tools run.Execution Modes
Client Mode (Default)
Tools execute entirely in the browser using Web APIs.- No server required
- Complete privacy (data stays in browser)
- No latency from network requests
- Works offline
- No access to filesystem
- No server-side secrets
- Browser API limitations
Server Mode
Tools require server-side execution.- File system operations
- Database access
- External API calls requiring secrets
- Heavy computation