Add setting for view image tool (#4406)

* Add setting for view image tool

* Fix ci
This commit is contained in:
Rob Lourens
2026-03-14 02:29:30 +00:00
committed by GitHub
parent ce66f105d1
commit 9d3bb4e8bd
3 changed files with 13 additions and 1 deletions
+11 -1
View File
@@ -380,6 +380,7 @@
"toolReferenceName": "viewImage",
"displayName": "%copilot.tools.viewImage.name%",
"userDescription": "%copilot.tools.viewImage.userDescription%",
"when": "config.github.copilot.chat.tools.viewImage.enabled",
"modelDescription": "View the contents of an image file. Use this instead of read_file for supported image files such as png, jpg, jpeg, gif, and webp. The tool returns the image directly to multimodal models and does not take line ranges or offsets.",
"inputSchema": {
"type": "object",
@@ -3163,6 +3164,15 @@
"preview"
]
},
"github.copilot.chat.tools.viewImage.enabled": {
"type": "boolean",
"default": true,
"markdownDescription": "%github.copilot.config.tools.viewImage.enabled%",
"tags": [
"preview",
"onExp"
]
},
"github.copilot.chat.anthropic.thinking.budgetTokens": {
"type": "number",
"markdownDescription": "%github.copilot.config.anthropic.thinking.budgetTokens%",
@@ -6222,4 +6232,4 @@
"zod": "3.25.76"
},
"vscodeCommit": "6f7de9c47ab13c3d886928c04c382d527c9bf11d"
}
}
+1
View File
@@ -296,6 +296,7 @@
"copilot.tools.readFile.userDescription": "Read the contents of a file",
"copilot.tools.viewImage.name": "View Image",
"copilot.tools.viewImage.userDescription": "View the contents of an image file",
"github.copilot.config.tools.viewImage.enabled": "Enable the view image tool, which allows the agent to view image files such as png, jpg, jpeg, gif, and webp.",
"copilot.tools.listDirectory.name": "List Dir",
"copilot.tools.listDirectory.userDescription": "List the contents of a directory",
"copilot.tools.getTaskOutput.name": "Get Task Output",
@@ -976,6 +976,7 @@ export namespace ConfigKey {
export const CopilotMemoryEnabled = defineSetting<boolean>('chat.copilotMemory.enabled', ConfigType.ExperimentBased, false);
export const MemoryToolEnabled = defineSetting<boolean>('chat.tools.memory.enabled', ConfigType.ExperimentBased, true);
export const ViewImageToolEnabled = defineSetting<boolean>('chat.tools.viewImage.enabled', ConfigType.ExperimentBased, true);
}
export function getAllConfigKeys(): string[] {