feat: screen viewing, Jarvis sees the whole screen, a monitor or a window for registered people
- screenView tool (screen_view.spec.md): whole screen, monitor by number, window by part of its title or program, or the list of monitors and windows; fast, normal or detailed pictures. - The app captures with Windows Graphics Capture (app/src/screen.rs, admin.spec.md "Screen viewing"), decides for the asker (only people registered for PC control), never picks, lists or shows excluded programs (pcControl.screenExclude, password managers by default), refuses minimised windows and black pictures, and records screen.view in the activity log. - Pictures ride on the tool message (ToolExecutionResult.images); llm.py sends them to OpenAI-compatible servers as image parts after the tool messages. They stay in that reply only: not in the tool carryover, logs or prompt dumps. - The LLM reads pictures only when screen viewing is available (--vision gpu normally, cpu in a game), measured apart for the placement; otherwise screenView is a disabled tool. - Worker: screen_action / screen_action_result, 4 MiB messages. - Eval evals/test_screen_view_tool.py; Windows check tests/screen_windows.rs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -28,6 +28,9 @@ schedule : Optional[object]
|
||||
notes : Optional[object]
|
||||
v2: the asker's standing instructions backend (personal_notes.spec.md). None means the
|
||||
personalNotes tool is not offered.
|
||||
screen : Optional[object]
|
||||
v2: the app's screen backend for the asker (screen_view.spec.md). None means the screenView
|
||||
tool is not offered.
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
@@ -46,6 +49,15 @@ def reset() -> None:
|
||||
_state.chat = None
|
||||
_state.schedule = None
|
||||
_state.notes = None
|
||||
_state.screen = None
|
||||
|
||||
|
||||
def set_screen(backend) -> None:
|
||||
_state.screen = backend
|
||||
|
||||
|
||||
def get_screen():
|
||||
return getattr(_state, "screen", None)
|
||||
|
||||
|
||||
def set_notes(backend) -> None:
|
||||
|
||||
Reference in New Issue
Block a user