fix(developer): classify image access capabilities (#10451)

This commit is contained in:
Jasper
2026-07-15 20:10:24 +02:00
committed by GitHub
parent 8b3fa5931c
commit 0f8ec6a952
@@ -163,10 +163,10 @@ impl DeveloperClient {
)
.annotate(ToolAnnotations::from_raw(
Some("Read Image".to_string()),
Some(true),
Some(false),
Some(false),
Some(true),
Some(false),
Some(true),
)),
]
}
@@ -264,6 +264,18 @@ mod tests {
assert_eq!(names, vec!["write", "edit", "shell", "tree", "read_image"]);
}
#[test]
fn read_image_annotations_reflect_network_access() {
let read_image = DeveloperClient::get_tools()
.into_iter()
.find(|tool| tool.name == "read_image")
.unwrap();
let annotations = read_image.annotations.unwrap();
assert_eq!(annotations.read_only_hint, Some(false));
assert_eq!(annotations.open_world_hint, Some(true));
}
fn test_context(data_dir: std::path::PathBuf) -> PlatformExtensionContext {
PlatformExtensionContext {
extension_manager: None,