dart-signature-help
To see function or method signatures at a cursor position, get signature help for the API being called.
When & Why to Use This Skill
The dart-signature-help skill is a specialized developer productivity tool designed to provide real-time function and method signature information for Dart programming. By retrieving precise API metadata—including parameter types, required arguments, and return values—at specific file coordinates, it empowers AI agents and developers to write accurate code, reduce syntax errors, and eliminate the need for manual documentation searches.
Use Cases
- Case 1: Real-time API Inspection - Quickly identifying the required parameters and data types for Dart methods during the coding process to ensure correct implementation.
- Case 2: Reducing Context Switching - Accessing detailed function signatures directly within the development workflow, preventing the need to leave the editor to check external documentation.
- Case 3: Debugging and Code Correction - Verifying the expected signature of a method when troubleshooting type mismatch errors or argument count mismatches in Dart projects.
| 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>"}}