mirror of
https://github.com/penpot/penpot-mcp.git
synced 2026-04-25 11:18:37 +00:00
Change system prompt in an attempt to prevent premature logging
This commit is contained in:
parent
1bc309fc5a
commit
36baab4a06
@ -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
|
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.
|
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
|
To execute code correctly, you need to understand the Penpot Plugin API. You can retrieve API documentation via
|
||||||
the `penpot_api_info` tool.
|
the `penpot_api_info` tool.
|
||||||
|
|
||||||
This is the full list of types/interfaces in the Penpot API: $api_types
|
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.
|
* `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.
|
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.
|
* `penpot.root` provides the root shape of the currently active page.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user