生成一张像素为1*1黑色的图像(单通道灰度图,如果要转换BGR彩色图,需调用灰度转彩色工具进行转换),如果后续需要修改大小可以调用Image_SetSize方法。 返回结构是一个序列化的JSON字符串,包含以下字段: ResultImg: 生成的图像结果 Create a new empty image of 1x1 pixel with black pixels (single-channel grayscale). If you want to convert to BGR color image, you need to call the grayscale to color co...
AI agents use image_new 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.
This tool creates a new image object in memory. It is a creation/write operation with minimal blast radius — it only generates a trivial 1x1 black pixel image with no file system writes or destructive side effects implied.
From the tool's definition Create a new empty image of 1x1 pixel with black pixels (single-channel grayscale)
Attacks that exploit this kind of access
生成一张像素为1*1黑色的图像(单通道灰度图,如果要转换BGR彩色图,需调用灰度转彩色工具进行转换),如果后续需要修改大小可以调用Image_SetSize方法。 返回结构是一个序列化的JSON字符串,包含以下字段: ResultImg: 生成的图像结果 Create a new empty image of 1x1 pixel with black pixels (single-channel grayscale). If you want to convert to BGR color image, you need to call the grayscale to color conversion tool. If you need to modify the size later, you can call the Image_SetSize method. Returns a serialized JSON string containing the following fields: ResultImg: The generated image result. 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.
Register the Leaper Vision Toolkit MCP server in PolicyLayer and add a rule for image_new: 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_new 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_new 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_new. 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_new 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 →