Claude: Support rendering tool messages for mouse and wait
This commit is contained in:
parent
f84d37e599
commit
33093a60fc
@ -21,6 +21,8 @@ export default {
|
||||
case '.fa-user:before':
|
||||
case '.fa-screwdriver-wrench:before':
|
||||
case '.fa-desktop:before':
|
||||
case '.fa-mouse-pointer:before':
|
||||
case '.fa-hourglass-half:before':
|
||||
case '.fa-brands:before':
|
||||
case '.fa-solid:before':
|
||||
case '.fa-regular:before':
|
||||
|
@ -58,6 +58,21 @@
|
||||
if (tool.action === "screenshot") {
|
||||
icon = "fa-desktop";
|
||||
messageContent = "Screenshot";
|
||||
} else if (tool.action === "mouse_move") {
|
||||
icon = "fa-mouse-pointer";
|
||||
var coords = tool.coordinate;
|
||||
messageContent = `Mouse at (${coords[0]}, ${coords[1]})`;
|
||||
} else if (tool.action === "left_click") {
|
||||
icon = "fa-mouse-pointer";
|
||||
var coords = tool.coordinate;
|
||||
messageContent = `Left click at (${coords[0]}, ${coords[1]})`;
|
||||
} else if (tool.action === "right_click") {
|
||||
icon = "fa-mouse-pointer";
|
||||
var coords = tool.coordinate;
|
||||
messageContent = `Right click at (${coords[0]}, ${coords[1]})`;
|
||||
} else if (tool.action === "wait") {
|
||||
icon = "fa-hourglass-half";
|
||||
messageContent = "Waiting";
|
||||
} else {
|
||||
icon = "fa-screwdriver-wrench";
|
||||
messageContent = "Use the system";
|
||||
|
Loading…
x
Reference in New Issue
Block a user