Skip to content

Commit 9b46ba7

Browse files
committed
docs(readme): document optional MCP tool arguments for context control
1 parent fc911b1 commit 9b46ba7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ The extension lets you visually select DOM elements in the browser, and the MCP
2121

2222
- 🎯 **`Option+Click` Selection** - Simply hold `Option` (Alt on Windows) and click any element
2323
- 📋 **Complete Element Data** - Text content, CSS classes, HTML attributes, positioning, and styling
24+
- 💡 **Dynamic Context Control** - Request visible-only text, suppress text entirely, or dial CSS detail from none → full computed styles per MCP call
2425
- ⚛️ **React Component Detection** - Component names and source files via Fiber (experimental)
2526
- 🔗 **WebSocket Connection** - Real-time communication between browser and AI tools
2627
- 🤖 **MCP Compatible** - Works with Claude Code and other MCP-enabled AI tools
@@ -102,7 +103,9 @@ After configuration, **restart your coding tool** to load the MCP connection.
102103
Your AI tool will automatically start the MCP server when needed using the `npx -y @mcp-pointer/server@latest start` command.
103104
104105
**Available MCP Tool:**
105-
- `get-pointed-element` - Get textual information about the currently pointed DOM element from the browser extension
106+
- `get-pointed-element` – Returns textual information about the currently pointed DOM element. Optional arguments:
107+
- `textDetail`: `"full" | "visible" | "none"` (default `"full"`) controls how much text to include.
108+
- `cssLevel`: `0 | 1 | 2 | 3` (default `1`) controls styling detail, from no CSS (0) up to full computed styles (3).
106109
107110
## 🎯 How It Works
108111

0 commit comments

Comments
 (0)