这个是缩放输入图像的工具。按照给定的缩放比例。若指定的结果图像对象为空图像,则生成和输入图像尺寸相同的图像。否则,将保持结果图像的尺寸,超出图像范围的像素设为背景像素(默认为黑色)。 工具不需要通过其它工具设置参数,不需要传入ILImageOp的对象。 返回结构是一个序列化的json,其中: ResultImg属性是输出结果图像URL地址。 English: The two input images should have the same size and format. 中文: 两个输入图像需尺寸相同、类型相同。
AI agents use il_image_op_resize 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 |
|---|---|---|---|
zoomX | number | — | x 方向的缩放比例,传入类型为double类型。 |
zoomY | number | — | y 方向的缩放比例,传入类型为double类型。 |
imageUrl | string | — | 图片的url地址,通过这个地址获取到图片 |
interMethod | string | — | 插值方法,传入类型为LPVInterpolationMethod类型。有效的类型为:LPVInterNearest(最近邻插值:速度较快,插值后的图像质量较差 。)、LPVInterLinear(双线性插值。)、LPVInterCubic(三次曲线插值:当放大图像时,推荐使用该插值方法以获得较好图像质量。)、LPVIn |
Parameters from the server's own tool schema.
This tool modifies images by resizing them and potentially padding with background pixels. While the transformations are reversible (since original images remain available and resizing isn't destructive data loss), the tool creates new modified image artifacts. This fits the Write category - it creates or modifies data reversibly.
From the tool's definition Tool description states it performs image resizing operations that modify image dimensions and content: 'scales the input image according to the given scale ratio' and 'maintains the result image size, pixels beyond the image range are set to background…
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 accepts 4 parameters: zoomX, zoomY, 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: 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 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 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. 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 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 →