Testing Tools
Manual Tool Testing
- Start dev mode: `nitrostack dev`
- Navigate to Tools page
- Click Execute on any tool
- Fill in input fields
- View results and UI widgets
Widget Preview
- Click Enlarge to view widget in modal
- Widgets render with example data from `@Tool` decorator
Tool Execution
Input Form
- Auto-generated from `inputSchema`
- Supports: strings, numbers, booleans, enums
- Shows descriptions and validation rules
Response Display
- JSON response
- UI widget (if attached)
- Execution time
Debugging
Browser Console
console.log(window.__tools);
console.log(window.__mcpConnected);
Network Tab
- Check API calls to `/api/tools`, `/api/resources`
- Verify tool execution requests
Next Steps