From 36baab4a06f4ca668369eaccd6d3f045140e388d Mon Sep 17 00:00:00 2001 From: Dominik Jain Date: Fri, 3 Oct 2025 23:11:55 +0200 Subject: [PATCH] Change system prompt in an attempt to prevent premature logging --- mcp-server/data/prompts.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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.