这个是缩放输入图像到指定的尺寸的工具。若指定的结果图像对象为空图像,则生成和输入图像尺寸相同的图像。否则,将保持结果图像的尺寸,超出图像范围的像素设为背景像素(默认为黑色)。 工具不需要通过其它工具设置参数,不需要传入ILImageOp的对象。 返回结构是一个序列化的json,其中: ResultImg属性是输出结果图像URL地址。 English: The two input images should have the same size and format. 中文: 两个输入图像需尺寸相同、类型相同。
AI agents use il_image_op_resize_to 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 |
|---|---|---|---|
h | integer | — | 输出图像的高度,传入类型为int类型。 |
w | integer | — | 输出图像的宽度,传入类型为int类型。 |
imageUrl | string | — | 图片的url地址,通过这个地址获取到图片 |
interMethod | string | — | 插值方法,传入类型为LPVInterpolationMethod类型。有效的类型为:LPVInterNearest(最近邻插值:速度较快,插值后的图像质量较差 。)、LPVInterLinear(双线性插值。)、LPVInterCubic(三次曲线插值:当放大图像时,推荐使用该插值方法以获得较好图像质量。)、LPVIn |
Parameters from the server's own tool schema.
This tool creates or modifies image data (resizing, potentially generating new images or overwriting existing ones). It does not execute arbitrary code or delete data irreversibly, so it falls under Write rather than Execute or Destructive. The blast radius is medium because malicious resizing could corrupt or alter images, but the operation is reversible.
From the tool's definition Tool name 'il_image_op_resize_to' and description indicate it modifies/transforms images by resizing them to specified dimensions.
Attacks that exploit this kind of access
这个是缩放输入图像到指定的尺寸的工具。若指定的结果图像对象为空图像,则生成和输入图像尺寸相同的图像。否则,将保持结果图像的尺寸,超出图像范围的像素设为背景像素(默认为黑色)。 工具不需要通过其它工具设置参数,不需要传入ILImageOp的对象。 返回结构是一个序列化的json,其中: ResultImg属性是输出结果图像URL地址。 English: The two input images should have the same size and format. 中文: 两个输入图像需尺寸相同、类型相同。. 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.
il_image_op_resize_to accepts 4 parameters: h, w, imageUrl, interMethod. 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 il_image_op_resize_to: 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.
il_image_op_resize_to 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 il_image_op_resize_to 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 il_image_op_resize_to. 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.
il_image_op_resize_to 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 →