返回 Skill 列表
extension
分类: 开发与工程无需 API Key

dart-get-selected-widget

要找到运行中的应用程序中当前选中的Flutter组件,请在连接到Dart Tooling Daemon后获取选中的组件。

person作者: jakexiaohubgithub

Usage

Use the MCP tool dev-swarm.request to send the payload as a JSON string:

{"server_id":"dart","tool_name":"get_selected_widget","arguments":{}}

Tool Description

Retrieves the selected widget from the active Flutter application. Requires "connect_dart_tooling_daemon" to be successfully called first.

Arguments Schema

The schema below describes the arguments object in the request payload.

{
  "type": "object"
}

Background Tasks

If the tool returns a task id, poll the task status via the MCP request tool:

{"server_id":"dart","method":"tasks/status","params":{"task_id":"<task_id>"}}