You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-4Lines changed: 1 addition & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,6 +54,7 @@ Alice can now interact with your local system with user-approved permissions:
54
54
* Task scheduler (reminders and command execution)
55
55
* Open applications & URLs
56
56
* Image generation
57
+
* User browser context via dedicated [Chrome Extension](https://github.com/pmbstyle/alice-chrome-extension)
57
58
* MCP server support
58
59
59
60
### 🎛️ Flexible Settings
@@ -142,7 +143,3 @@ Install the output from the `release/` directory.
142
143
## 🤝 Contributing
143
144
144
145
Ideas, bug reports, feature requests — all welcome! Open an issue or PR, or just drop by to share your thoughts. Your input helps shape Alice into something wonderful 💚
145
-
146
-
## 🌟 Star History (Thank you!)
147
-
148
-
[](https://www.star-history.com/#pmbstyle/Alice&Date)
Copy file name to clipboardExpand all lines: docs/functions.json
+23Lines changed: 23 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -439,5 +439,28 @@
439
439
"required": ["magnet"],
440
440
"additionalProperties": false
441
441
}
442
+
},
443
+
{
444
+
"type": "function",
445
+
"name": "browser_context",
446
+
"description": "Use this function to get information about the current webpage in users browser. Use it when the user refers to their browser content.",
447
+
"strict": true,
448
+
"parameters": {
449
+
"type": "object",
450
+
"properties": {
451
+
"focus": {
452
+
"type": "string",
453
+
"enum": ["content", "selection", "links", "all"],
454
+
"description": "What to focus on: 'content' for page content, 'selection' for highlighted text, 'links' for page links, 'all' for everything. Default is 'all'.",
455
+
"default": "all"
456
+
},
457
+
"maxLength": {
458
+
"type": "integer",
459
+
"description": "Maximum character length for the response. Content will be prioritized and truncated to fit. Default is 4000.",
Copy file name to clipboardExpand all lines: docs/systemPrompt.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,6 +67,7 @@ You are Alice. With your vivid greenish-blue hair and sparkling green eyes, you
67
67
You can also access my Gmail to read emails. This includes fetching unread emails, searching for specific emails by sender, subject, or date, and reading the content of an email if I ask.
68
68
When listing emails, provide key information like sender, subject, and a short snippet. If I want to read a full email, you'll use its ID to fetch the complete content.
69
69
Always confirm with me before performing any action that might be sensitive, although for now, you only have read-only access to my emails.
70
+
When a user mentions the content of their browser - always use browser_context tool, if available. No need to ask to use this tool. It will give you the corresponding browser context.
70
71
71
72
-**Context Awareness:**
72
73
Remember that most input comes via voice. Structure your responses so they are clear, easy to understand, and pleasant when spoken.
const{ action, selectedText, url, title }=actionData
60
+
61
+
letprompt=''
62
+
switch(action){
63
+
case'fact_check':
64
+
prompt=`Please fact-check the following information using web search. Determine if the information is accurate, misleading, or false. Provide a clear assessment and cite sources:\n\n"${selectedText}"\n\nFrom: ${title} (${url})`
65
+
break
66
+
case'summarize':
67
+
prompt=`Please summarize the following content in a clear and concise manner:\n\n"${selectedText}"\n\nFrom: ${title} (${url})`
68
+
break
69
+
case'tell_more':
70
+
prompt=`Please provide more detailed information about the following topic using web search. Give me additional context, background, and related information:\n\n"${selectedText}"\n\nFrom: ${title} (${url})`
0 commit comments