read_image
Extracts image dataURL and dimensions from local or URL-based images, supporting resizing via maxSide parameter for flexible image processing.
Instructions
读取本地/URL图片并返回 dataURL 与尺寸信息
Input Schema
Name | Required | Description | Default |
---|---|---|---|
maxSide | No | 最大边长,用于缩放 | |
path | Yes | 图片路径或URL |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"maxSide": {
"description": "最大边长,用于缩放",
"type": "number"
},
"path": {
"description": "图片路径或URL",
"type": "string"
}
},
"required": [
"path"
],
"type": "object"
}