这个是将输入图像和一个标量逐像素相加的工具。输出一个新图像。 工具不需要通过其它工具设置参数,不需要传入ILImageOp的对象。 返回结构是一个序列化的json,其中: ResultImg属性是输出结果图像URL地址。 English: For a color image to specify the scalar value used for the 2nd channel. If both scalar2 and scalar3 is set to 0 (default), we'll use the value scalar for all 3 channels. 中文: 用于为...
AI agents use il_image_op_add_scalar 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 |
|---|---|---|---|
scalar | number | — | 输入的标量,传入类型为double类型。 |
scalar2 | number | — | 用于为彩色图像指定第二个通道使用的标量值,传入类型为double类型,若 scalar2 和 scalar3 都设置为 0(默认值),则对所有通道均使用 scalar 数值。 |
scalar3 | number | — | 用于为彩色图像指定第三个通道使用的标量值,传入类型为double类型。 |
imageUrl | string | — | 图片的url地址,通过这个地址获取到图片 |
Parameters from the server's own tool schema.
This tool creates or modifies image data reversibly through a mathematical operation (scalar addition). It fits the Write category as it generates transformed image output without destructive effects, side effects on external systems, code execution, or financial implications.
From the tool's definition Tool performs pixel-wise addition of a scalar value to an input image and outputs a new image. Description states it produces 'a new image' (新图像) with ResultImg as the output URL.
Attacks that exploit this kind of access
这个是将输入图像和一个标量逐像素相加的工具。输出一个新图像。 工具不需要通过其它工具设置参数,不需要传入ILImageOp的对象。 返回结构是一个序列化的json,其中: ResultImg属性是输出结果图像URL地址。 English: For a color image to specify the scalar value used for the 2nd channel. If both scalar2 and scalar3 is set to 0 (default), we'll use the value scalar for all 3 channels. 中文: 用于为彩色图像指定第二个通道使用的标量值。若 scalar2 和 scalar3 都设置为 0(默认值),则对所有通道均使用 scalar 数值。. 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_add_scalar accepts 4 parameters: scalar, scalar2, scalar3, 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 il_image_op_add_scalar: 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_add_scalar 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_add_scalar 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_add_scalar. 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_add_scalar 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 →