Read editor code
get_codeRead the current contents of a browser-based code editor and return the code along with its originating editor instance.
Instructions
Read the current contents of the code editor on the page. Returns the code plus which editor instance it came from.
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": "get_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| modelIndex | No | Which editor if the page has several |