codetether-agent 4.7.0-a-002.2

A2A-native AI coding agent for the CodeTether ecosystem
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Native scroll wheel via Win32 SendInput.

use crate::platform::windows::computer_use::send_scroll;
use crate::tool::computer_use::input::ComputerUseInput;

/// Send scroll wheel event using native Win32 API.
pub async fn handle_scroll(input: &ComputerUseInput) -> anyhow::Result<crate::tool::ToolResult> {
    let amount = input.scroll_amount.unwrap_or(-120);
    send_scroll(amount)?;
    Ok(super::super::response::success_result(serde_json::json!({
        "scrolled": amount
    })))
}