mirror of
https://github.com/openai/codex.git
synced 2026-11-04 08:25:29 +00:00
Clarify view_image tool description (#23949)
This commit is contained in:
1 parent
66ff8b0f54
commit
675cb1afbd
2 files changed
+2
-2
No files matched your search
@@ -40,7 +40,7 @@ pub fn create_view_image_tool(options: ViewImageToolOptions) -> ToolSpec {
|
|||||||
|
|
||||||
ToolSpec::Function(ResponsesApiTool {
|
ToolSpec::Function(ResponsesApiTool {
|
||||||
name: VIEW_IMAGE_TOOL_NAME.to_string(),
|
name: VIEW_IMAGE_TOOL_NAME.to_string(),
|
||||||
description: "View a local image from the filesystem (only use if given a full filepath by the user, and the image isn't already attached to the thread context within <image ...> tags)."
|
description: "View a local image file from the filesystem when visual inspection is needed. Use this for images already available on disk."
|
||||||
.to_string(),
|
.to_string(),
|
||||||
strict: false,
|
strict: false,
|
||||||
defer_loading: None,
|
defer_loading: None,
|
||||||
|
|||||||
@@ -2861,7 +2861,7 @@ text(JSON.stringify(tool));
|
|||||||
parsed,
|
parsed,
|
||||||
serde_json::json!({
|
serde_json::json!({
|
||||||
"name": "view_image",
|
"name": "view_image",
|
||||||
"description": "View a local image from the filesystem (only use if given a full filepath by the user, and the image isn't already attached to the thread context within <image ...> tags).\n\nexec tool declaration:\n```ts\ndeclare const tools: { view_image(args: {\n // Local filesystem path to an image file\n path: string;\n}): Promise<{\n // Image detail hint returned by view_image. Returns `high` for default resized behavior or `original` when original resolution is preserved.\n detail: \"high\" | \"original\";\n // Data URL for the loaded image.\n image_url: string;\n}>; };\n```",
|
"description": "View a local image file from the filesystem when visual inspection is needed. Use this for images already available on disk.\n\nexec tool declaration:\n```ts\ndeclare const tools: { view_image(args: {\n // Local filesystem path to an image file\n path: string;\n}): Promise<{\n // Image detail hint returned by view_image. Returns `high` for default resized behavior or `original` when original resolution is preserved.\n detail: \"high\" | \"original\";\n // Data URL for the loaded image.\n image_url: string;\n}>; };\n```",
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user