forked from kent/consciousness
WIP: Fix Arc::new() wrapping on tool handlers — some import/paren issues remain
Co-Authored-By: Proof of Concept <poc@bcachefs.org>
This commit is contained in:
parent
12798eeae2
commit
daba424a46
9 changed files with 16 additions and 16 deletions
|
|
@ -23,7 +23,7 @@ pub fn tool() -> super::Tool {
|
|||
name: "view_image",
|
||||
description: "View an image file or capture a tmux pane screenshot. Supports PNG, JPEG, GIF, WebP. Use pane_id to capture a tmux pane instead.",
|
||||
parameters_json: r#"{"type":"object","properties":{"file_path":{"type":"string","description":"Path to an image file"},"pane_id":{"type":"string","description":"Tmux pane ID to capture (e.g. '0:1.0')"},"lines":{"type":"integer","description":"Lines to capture from tmux pane (default 50)"}}}"#,
|
||||
handler: Arc::new(|_a, v| Box::pin(async move { view_image_text(&v)) }),
|
||||
handler: Arc::new(|_a, v| Box::pin(async move { view_image_text(&v) })),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue