image_new

生成一张像素为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...

Server Leaper Vision Toolkit leaper-mcp/leaper-mcp-proxy
Category Write
Risk class Medium
Parameters 00 required

What image_new does on Leaper Vision Toolkit

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.

Why image_new needs a policy

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)

Questions about image_new

What does the image_new tool do? +

生成一张像素为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.

How do I enforce a policy on image_new? +

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.

What risk level is image_new? +

image_new is a Write tool with medium risk. Write tools should be rate-limited to prevent accidental bulk modifications.

Can I rate-limit image_new? +

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.

How do I block image_new completely? +

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.

What MCP server provides image_new? +

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.

// LOOK UP ANOTHER 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 →

// GET IN TOUCH

Have a question or want to learn more? Send us a message.

Message sent.

We'll get back to you soon.