find_source_for_selection
Locates source files for a selected UI element by searching the workspace. Returns ranked candidates with file paths, line ranges, and confidence scores.
Instructions
Searches the workspace for source files that likely define or render the selected UI element. Returns ranked candidates with file paths, line ranges, confidence scores, and match reasons. Can work with live Chrome selections or stored thread element_context.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "find_source_for_selection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| correlationId | No | The correlationId of a specific selection. If omitted, uses the latest selection. | |
| thread_id | No | A Yocoolab thread ID to use stored element_context instead of a live selection. |