Skip to main content
Glama

cdp_monaco_editor

Control Monaco Editor instances in web pages to read, write, or clear code while preserving formatting. Part of the CDP MCP server for browser automation.

Instructions

Interact with Monaco Editor (VS Code web editor) on the page. Detects Monaco instances and provides reliable get/set operations that preserve formatting. Much better than generic text input tools for Monaco.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionYesAction: detect (find editors), getValue (read code), setValue (write code), clear (empty editor)
valueNoCode to set (required for setValue action)
editor_indexNoEditor index to target when multiple Monaco editors exist (default: 0)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/RED-BASE/cdp-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server