( ctx context.Context, conn workspacesdk.AgentConn, declaredWidth, declaredHeight int, )
| 422 | } |
| 423 | |
| 424 | func executeScreenshotAction( |
| 425 | ctx context.Context, |
| 426 | conn workspacesdk.AgentConn, |
| 427 | declaredWidth, declaredHeight int, |
| 428 | ) (workspacesdk.DesktopActionResponse, error) { |
| 429 | screenshotAction := workspacesdk.DesktopAction{ |
| 430 | Action: "screenshot", |
| 431 | ScaledWidth: &declaredWidth, |
| 432 | ScaledHeight: &declaredHeight, |
| 433 | } |
| 434 | return conn.ExecuteDesktopAction(ctx, screenshotAction) |
| 435 | } |
| 436 | |
| 437 | func (t *computerUseTool) declaredActionDimensions() (declaredWidth, declaredHeight int) { |
| 438 | if t.declaredWidth <= 0 || t.declaredHeight <= 0 { |
no test coverage detected