diff --git a/mcp-server/data/prompts.yml b/mcp-server/data/prompts.yml index 6085909..c464245 100644 --- a/mcp-server/data/prompts.yml +++ b/mcp-server/data/prompts.yml @@ -20,12 +20,15 @@ initial_instructions: | One of your key tools is the `execute_code` tool, which allows you to run JavaScript code using the Penpot Plugin API directly in the connected project. + + VERY IMPORTANT: When writing code, NEVER LOG INFORMATION YOU ARE ALSO RETURNING. It would duplicate the information you receive! + To execute code correctly, you need to understand the Penpot Plugin API. You can retrieve API documentation via the `penpot_api_info` tool. This is the full list of types/interfaces in the Penpot API: $api_types - When writing code, a key object is the `penpot` object (which is of type `Penpot`): + A key object to use in your code is the `penpot` object (which is of type `Penpot`): * `penpot.selection` provides the list of shapes the user has selected in the Penpot UI. If it is unclear which elements to work on, you can ask the user to select them for you. * `penpot.root` provides the root shape of the currently active page.