dart-get-active-location

Retrieve cursor position and text selection from a connected editor.

19|14|Updated Feb 4, 2026
One-click install
npx skills add https://github.com/X-School-Academy/skill-pilot --skill dart-get-active-location
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: dart-get-active-location
Source: https://github.com/X-School-Academy/skill-pilot/tree/main/core/skills/mcp/dart-get-active-location
Command: npx skills add https://github.com/X-School-Academy/skill-pilot --skill dart-get-active-location

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps developers by retrieving the precise cursor position or active selection within their connected code editor, which is crucial for context-aware tooling and automation.

Core Features & Use Cases

  • Cursor Position Retrieval: Obtain the exact line and column number of the cursor.
  • Selection Awareness: Understand the currently highlighted text range.
  • Use Case: A code refactoring tool could use this to apply changes precisely where the user is actively working, or an AI assistant could use it to understand the context of a user's query.

Quick Start

Ask the AI to get the current cursor position in the editor.

Frequently Asked Questions about dart-get-active-location

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I get the current cursor position in a Dart IDE?▼

To get the current cursor position in a Dart IDE, retrieve the active editor location. This provides the exact line and column number of your cursor for context-aware automation.

What is active editor location retrieval used for in code analysis?▼

Active editor location retrieval is used to obtain precise cursor positions and text selections. It enables context-aware tooling, allowing refactoring tools or AI assistants to apply changes exactly where you work.

Does getting the active editor location require a Dart tooling daemon connection?▼

Yes, getting the active editor location requires a successful Dart tooling daemon connection. You must execute connect_dart_tooling_daemon beforehand to establish the communication needed for retrieving cursor context.

Can I retrieve highlighted text selection ranges from a connected editor?▼

Yes, you can retrieve highlighted text selection ranges from a connected editor. The location retrieval mechanism provides selection awareness by identifying the currently highlighted text range for code analysis.

Why is my cursor position retrieval not working in Dart tooling?▼

Cursor position retrieval fails if the Dart tooling daemon is not connected. Ensure the connect_dart_tooling_daemon prerequisite executes successfully first to establish the required editor communication channel.