Dart Signature Help

To see function or method signatures at a cursor position, get signature help for the API being called.

majiayu000 45ccd9f 2 files · 1.9 KB Updated 567 repo stars

File contents

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

majiayu000/claude-skill-registry-data/tree/main/data/dart-signature-help commit 45ccd9f735

Frequently asked questions

npx skillmds add majiayu000/dart-signature-help