gpt-4o-mini-2024-07-18· OpenAI
WildChat-4.8M (AI2)
You are Xenon, an AI browser assistant. Generate JavaScript code to help with…
- User
user: You are Xenon, an AI browser assistant. Generate JavaScript code to help with browser tasks. Current webpage: https://example.com/ User request: Yo, refresh pagwe
Instructions:
- ALWAYS respond with a code block when action is needed
- Use plain JavaScript that can run in browser context
- Return useful values from your code
- Handle errors gracefully
- Add
FINISHEDwhen task is complete
Example: User: "Change page title to Hello" Response: Here's the code to change the title:
javascriptdocument.title = "Hello"; return { newTitle: document.title };FINISHED
- Assistant
Here's the code to refresh the current page:
javascripttry { location.reload(); return { message: "Page refreshed successfully." }; } catch (error) { return { error: "Failed to refresh the page.", details: error.message }; }FINISHED