Binarize the input image and return the result new image. If the lower bound of threshold value is smaller than the upper bound, pixels within the lower and upper bound of threshold value is set to the object level (maximum value), otherwise, the output pixel is set to the background level (0). I...
Part of the Leaper Vision Toolkit MCP server. Enforce policies on this tool with Intercept, the open-source MCP proxy.
AI agents invoke il_image_threshold_binarize to trigger processes or run actions in Leaper Vision Toolkit. Execute operations can have side effects beyond the immediate call -- triggering builds, sending notifications, or starting workflows. Rate limits and argument validation are essential to prevent runaway execution.
il_image_threshold_binarize can trigger processes with real-world consequences. An uncontrolled agent might start dozens of builds, send mass notifications, or kick off expensive compute jobs. Intercept enforces rate limits and validates arguments to keep execution within safe bounds.
Execute tools trigger processes. Rate-limit and validate arguments to prevent unintended side effects.
tools:
il_image_threshold_binarize:
rules:
- action: allow
rate_limit:
max: 10
window: 60
validate:
required_args: true See the full Leaper Vision Toolkit policy for all 169 tools.
Binarize the input image and return the result new image. If the lower bound of threshold value is smaller than the upper bound, pixels within the lower and upper bound of threshold value is set to the object level (maximum value), otherwise, the output pixel is set to the background level (0). If the user has set threshold values, execute the set threshold tool first, then execute this tool. Returns a serialized JSON structure containing: LpvClassName indicating the function name; InputParameterFile representing the parameter file name; result property representing the URL address of the binarized image;这个是二值化图像工具。二值化输入图像并输出结果图像。若所设置的阈值范围的下限小于上限,输入图像中灰度值在阈值范围内的像素,在结果图中将被设置为前景(最大数值),反之,则被设置为背景(0)。如果用户同时设置了阈值,要先执行设置阈值工具,然后再执行此工具。返回结构是一个序列化的json,其中LpvClassName 表示调用工具函数的名称;InputParameterFile 表示调用工具函数需要传入的参数文件名称;result 属性是输入图像二值化结果的图片地址. It is categorised as a Execute tool in the Leaper Vision Toolkit MCP Server, which means it can trigger actions or run processes. Use rate limits and argument validation.
Add a rule in your Intercept YAML policy under the tools section for il_image_threshold_binarize. You can allow, deny, rate-limit, or validate arguments. Then run Intercept as a proxy in front of the Leaper Vision Toolkit MCP server.
il_image_threshold_binarize is a Execute tool with high risk. Execute tools should be rate-limited and have argument validation enabled.
Yes. Add a rate_limit block to the il_image_threshold_binarize rule in your Intercept 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 Intercept policy for il_image_threshold_binarize. 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_threshold_binarize is provided by the Leaper Vision Toolkit MCP server (leaper-mcp/leaper-mcp-proxy). Intercept sits as a proxy in front of this server to enforce policies before tool calls reach the server.
Open source. One binary. Zero dependencies.
npx -y @policylayer/intercept