Skip to main content
Glama
mayjack0312
by mayjack0312

eda_pcb_primitive_component_place_footprint_with_mouse

Place a PCB footprint by binding it to the mouse cursor for manual placement on the canvas, returning true once the footprint is found and attached.

Instructions

pcb_PrimitiveComponent.placeFootprintWithMouse(footprint: { libraryUuid: string; uuid: string } | ILIB_FootprintItem | ILIB_FootprintSearchItem, properties?: Record<string, boolean | number | string | undefined>) -> Promise 使用鼠标放置封装 remarks: ADD since API v0.2.26

本接口模拟前端点击放置按钮,指定的封装将绑定到当前鼠标,并在用户后续点击时放置于画布

本接口的返回时机并不会等待用户的放置操作,一旦封装被绑定到鼠标,本接口将立即返回 true 的结果 returns: 是否找到封装

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
argsNo按官方签名顺序排列的JSON参数数组
windowIdNo目标EDA窗口ID;省略时使用当前活动窗口

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A4.1/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden. It clearly discloses that the method returns immediately after binding the footprint to the mouse, without waiting for the user's placement action, and that it returns a boolean indicating whether the footprint was found. It also notes it simulates a front-end button click. This covers the key asynchronous and interactive behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is compact, starting with the API signature, then a brief remarks note, and then two sentences explaining behavior and return semantics. Each sentence contributes to understanding the tool, with no redundant filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description covers the essential behavior: it is interactive (requires user click), returns immediately, and indicates success via boolean. It lacks explicit mention of prerequisites like an open PCB document, but the core functionality and return semantics are sufficiently explained for an agent to call it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema only describes args as a JSON array and windowId, but the description includes the actual function signature specifying the footprint object structure (libraryUuid, uuid) and optional properties record. This adds meaningful type and structure information beyond the schema, helping the agent construct valid arguments.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb (place) and resource (footprint) with '使用鼠标放置封装'. The inclusion of the full API signature leaves no ambiguity about what is being placed. It differentiates from siblings by specifying footprint rather than component, and the name itself reinforces this.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explains how the tool works (simulates a click, binds to mouse, places on subsequent click) but does not explicitly state when to use it versus alternatives like place_component_with_mouse. Usage context is implied by the name and description, but no exclusions or alternative routing are given.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools