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

dart-get-active-location

要从已连接的编辑器中获取当前光标位置,请在连接到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_active_location","arguments":{}}

Tool Description

Retrieves the current active location (e.g., cursor position) in the connected editor. 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>"}}