dart-hover

To view hover details such as docs and types at a cursor position, get hover information for a file location.

⭐6stars🔀3forks📁View on GitHub🕐Updated Jan 7, 2026⬇️1downloads

When & Why to Use This Skill

The dart-hover skill is a specialized developer utility designed to bring IDE-grade intelligence to the Claude environment. It enables the retrieval of real-time documentation, type definitions, and hover information for Dart source code at specific file coordinates. By providing deep technical context, it helps users and AI agents understand complex codebases, verify API signatures, and ensure type accuracy, significantly streamlining the Dart and Flutter development lifecycle.

Use Cases

  • Code Exploration: Quickly grasp the functionality of unfamiliar Dart libraries or internal modules by viewing inline documentation and comments for classes and methods.
  • Type Safety Verification: Debug type-related issues by inspecting the precise inferred types of variables and expressions at any given cursor position.
  • API Reference Lookup: Access detailed parameter descriptions, return types, and usage notes for Dart SDK or third-party package APIs without leaving the chat interface.
  • Contextual Code Review: Enhance the code review process by providing the agent with the necessary technical metadata to explain or critique specific lines of code accurately.
namedart-hover
description"To view hover details such as docs and types at a cursor position, get hover information for a file location."

Usage

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

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

Tool Description

Get hover information at a given cursor position in a file. This can include documentation, type information, etc for the text at that position.

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