eda_dmt_select_control_get_current_document_info
Retrieve the currently focused document's type, UUID, project UUID, and library UUID. Use it to identify which document is active and its associated parent IDs.
Instructions
dmt_SelectControl.getCurrentDocumentInfo() -> Promise<IDMT_EditorDocumentItem | undefined>
获取当前文档的属性
remarks: 将会获取当前打开且拥有最后输入焦点的文档的文档类型、UUID、所属工程的 UUID 或所属库的 UUID
returns: 文档类型、UUID、所属工程的 UUID、所属库的 UUID 组成的对象,如若为 undefined 则获取失败
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "eda_dmt_select_control_get_current_document_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | 按官方签名顺序排列的JSON参数数组 | |
| windowId | No | 目标EDA窗口ID;省略时使用当前活动窗口 |