dart-signature-help

要查看光标位置处的函数或方法签名,请获取正在调用的 API 的签名帮助。

📖 中文导读:要查看光标位置处的函数或方法签名,请获取正在调用的 API 的签名帮助。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。

name: dart-signature-help description: "To see function or method signatures at a cursor position, get signature help for the API being called."

Usage

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

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

Tool Description

Get signature help for an API being used at a given cursor position in a file.

Arguments Schema

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

{
  "type": "object",
  "properties": {
    "uri": {
      "type": "string",
      "description": "The URI of the file."
    },
    "line": {
      "type": "integer",
      "description": "The zero-based line number of the cursor position."
    },
    "column": {
      "type": "integer",
      "description": "The zero-based column number of the cursor position."
    }
  },
  "required": [
    "uri",
    "line",
    "column"
  ]
}

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>"}}