{"record":{"id":"ce1dd84e99a46cdc","repo":"cline/cline","slug":"current-model-does-not-support-image-input","errorCode":null,"errorMessage":"Current model does not support image input","messagePattern":"Current model does not support image input","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"sdk/packages/core/src/extensions/tools/executors/file-read.ts","lineNumber":238,"sourceCode":"\t\tconst resolvedPath = resolveExistingFilePath(initialPath) ?? initialPath;\n\t\tconst extension = path.extname(resolvedPath).toLowerCase();\n\t\tconst imageMediaType = IMAGE_MEDIA_TYPES.get(extension);\n\n\t\t// Check if file exists\n\t\tconst stat = await fs.stat(resolvedPath);\n\n\t\tif (!stat.isFile()) {\n\t\t\tthrow new Error(`Path is not a file: ${resolvedPath}`);\n\t\t}\n\n\t\tif (imageMediaType) {\n\t\t\tif (stat.size > maxFileSizeBytes) {\n\t\t\t\tthrow new Error(\n\t\t\t\t\t`Image file too large: ${stat.size} bytes (max: ${maxFileSizeBytes} bytes).`,\n\t\t\t\t);\n\t\t\t}\n\t\t\tif (context.metadata?.modelSupportsImages !== true) {\n\t\t\t\tthrow new Error(\"Current model does not support image input\");\n\t\t\t}\n\t\t\tconst data = await fs.readFile(resolvedPath);\n\t\t\treturn [\n\t\t\t\t{\n\t\t\t\t\ttype: \"text\",\n\t\t\t\t\ttext: \"Successfully read image\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\ttype: \"image\",\n\t\t\t\t\tdata: data.toString(\"base64\"),\n\t\t\t\t\tmediaType: imageMediaType,\n\t\t\t\t},\n\t\t\t];\n\t\t}\n\n\t\tif (stat.size > MAX_TEXT_STREAM_BYTES) {\n\t\t\tthrow new Error(\n\t\t\t\t`Text file too large to stream safely: ${stat.size} bytes (max: ${MAX_TEXT_STREAM_BYTES} bytes). Use a targeted command such as sed, grep, head, or tail to inspect specific sections.`,","sourceCodeStart":220,"sourceCodeEnd":256,"githubUrl":"https://github.com/cline/cline/blob/491b30b806fdb8c93513f821f2b87d63a61542f5/sdk/packages/core/src/extensions/tools/executors/file-read.ts#L220-L256","documentation":"Error \"Current model does not support image input\" thrown in cline/cline.","triggerScenarios":"Thrown at sdk/packages/core/src/extensions/tools/executors/file-read.ts:238 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"491b30b806fdb8c93513f821f2b87d63a61542f5","analyzedAt":"2026-08-25T13:45:22.367Z","schemaVersion":2},"datasetVersion":"2026-08-25T21:54:21.419Z"}