All links in Kombai open in the User-controlled browser by default.
Use cases
Improve page performance
Improve page performance
Kombai can read the performance tab in the browser dev tools. It has access to metrics such as LCP, CLS, and INP. As a result, it can help you improve the performance of your page by making code changes and comparing the web vitals before and after the changes.
Example prompts
- My page is loading slowly. Help me improve the performance.
- Give me the current performance metrics of the page.
- What is LCP, FCP, FID, CLS, etc. of the page?
Fix network errors
Fix network errors
Kombai captures all the network requests from the network tab in the browser dev tools. It can see what type of requests are being made and whether they are successful or not.
Example prompts
- My screen is blank. Identify the issue and fix it.
- Check why the images are not loading.
- Identify the slow network requests and suggest improvements.
- I am getting CORS errors on this page, how to proceed?
Refactor components
Refactor components
Kombai can identify the component associated with the tagged DOM element. Tag an element and describe the changes you want to make to its component. Kombai will refactor the code accordingly.
Example prompts
- Use the
<Accordion>component for each heading description pair. - Create a new
<CardGroup>component to group the tagged cards together.
Make UI changes
Make UI changes
Kombai can read the rendered DOM elements in the browser. It can check the text, style, spacing, layout, color, etc. of the rendered DOM elements along with having access to the component code. As a result, Kombai can make UI changes faster and more accurately.
Example prompts
- Change the text of the button to “Click me”.
- Change the spacing of the tagged div to 10px.
- Use flex instead of grid.
Fix console errors
Fix console errors
Kombai can read the console errors from the browser dev tools. Attach the console errors to the browser chat and ask Kombai to fix them.
Example prompt
- Fix the console error.
Send elements & errors to Kombai
When you send a DOM element or console error to Kombai, it is attached to your current active chat in Kombai.Send DOM elements
- Click the icon in the browser chat window. Alternatively, press ⌘ + ⌥ + . keyboard shortcut on macOS.
- Click the DOM element that you want to send to Kombai. When you click the DOM element, Kombai captures the screenshot of the DOM element and the entire page.
- Add additional instructions that you want to send to Kombai (if any).
- Click the Send to chat button.
- Then, come back to the Kombai and click the icon.
Send console errors
- Click the Console errors button in the browser chat window.
- Then, come back to the Kombai and click the icon.
Connection status
The connection status is shown in the browser input.- If the connection is successful, you will see the Connected status.
- If the connection is lost, you will see the Disconnected status. Click Reconnect app to connect again. If the problem persists, try the troubleshooting steps mentioned here.
- If the connection is failed, you will see the Failed to load status. Click Retry to connect.
Preview multiple screens
You can use multiple browser tabs to preview multiple screens of your app. This enables you to select elements from other screens that you want to refer in your current browser tab. For example, if you have the Homepage open in the browser and want to add a avatar from the Accounts page to Home, open the Accounts page in a new tab. Then, select the avatar and return to the previous tab (Home). You’ll see the avatar’s DOM element highlighted in yellow. You can then ask Kombai to add the avatar to Home.Select large DOM elements
You can select a large DOM element quickly with the snipping tool. Click the icon in the browser chat window to open the snipping tool. Drag the mouse on the screen to select the DOM elements. DOM elements from the dragged area will be captured and sent to Kombai.How to expand the browser chat
- Click the icon to expand the chat window.
- Click the icon to collapse the chat window.
How to move browser chat position on the screen
- Click the and icons to move the chat window to the left and right of the screen, respectively.
- Click the and icons to move the chat window to the top and bottom of the screen, respectively.
How to switch to User-controlled browser
- Click the icon in the chat input box.
- Click User-controlled browser.
Image library
Kombai maintains a library of all the images you attach to the chat. With the image library, you can select or snip a portion of the screenshot you attached earlier without having to re-upload it. Use this to iterate on the code by asking Kombai to refine specific elements from your screenshots. To access the image library:- Click the icon in the browser chat window.
- Select the image you want to use from the left sidebar.