设置图像为指定尺寸。如果设置尺寸比原尺寸更大,像素的数值则会为随机,可调用 SetTo() 或 SetToColor() 接口将其全部设置为 0 或其他数值。 返回结构是一个序列化的JSON字符串,包含以下字段: ResultImg: 设置尺寸后的图像结果 Set the image to the specified size. If the set size is larger than the original size, the pixel values will be random, you can call SetTo() or SetToColor() interface t...
AI agents use image_set_size to create or update resources in Leaper Vision Toolkit — usually the action step of a workflow, after the agent has gathered context. Every call changes real data in your Leaper Vision Toolkit environment.
| Parameter | Type | Required | Description |
|---|---|---|---|
width | integer | — | 输入图像宽度 |
height | integer | — | 输入图像高度 |
imageUrl | string | — | 当前图像的url地址,通过这个地址获取到输入图像 |
Parameters from the server's own tool schema.
This tool writes/modifies image data (resizing), which is reversible and has no destructive, financial, or code-execution implications. The modification is localized to image dimensions and pixel values, with no side effects beyond the image itself. Classified as Write rather than Read because it actively transforms the image state, not merely retrieves it.
From the tool's definition Tool modifies images by resizing them to specified dimensions. Description states "Set the image to the specified size" and returns "ResultImg: The image result after setting the size". The operation creates or modifies image data reversibly.
Attacks that exploit this kind of access
设置图像为指定尺寸。如果设置尺寸比原尺寸更大,像素的数值则会为随机,可调用 SetTo() 或 SetToColor() 接口将其全部设置为 0 或其他数值。 返回结构是一个序列化的JSON字符串,包含以下字段: ResultImg: 设置尺寸后的图像结果 Set the image to the specified size. If the set size is larger than the original size, the pixel values will be random, you can call SetTo() or SetToColor() interface to set them all to 0 or other values. Returns a serialized JSON string containing the following fields: ResultImg: The image result after setting the size. It is categorised as a Write tool in the Leaper Vision Toolkit MCP Server, which means it can create or modify data. Consider rate limits to prevent runaway writes.
image_set_size accepts 3 parameters: width, height, imageUrl. The full parameter table on this page comes from the server's own tool schema.
Register the Leaper Vision Toolkit MCP server in PolicyLayer and add a rule for image_set_size: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Leaper Vision Toolkit. Nothing to install.
image_set_size is a Write tool with medium risk. Write tools should be rate-limited to prevent accidental bulk modifications.
Yes. Add a rate_limit block to the image_set_size rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.
Set action: deny in the PolicyLayer policy for image_set_size. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.
image_set_size is provided by the Leaper Vision Toolkit MCP server (leaper-mcp/leaper-mcp-proxy). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
Every MCP server has a record like this.
Type a name, get the same breakdown: verified identity, auth posture, risk grade, capabilities, recommended policy.
Teams ship this data inside their own products. See what a licence covers →