Add one element (text box, rectangle, ellipse, line, or image) to a slide. Lines draw from the top-left to the bottom-right corner of their bounding box. Returns the new element id.
Persona Chat source site42 tools on this site
What this tool does
Add one element (text box, rectangle, ellipse, line, or image) to a slide. Lines draw from the top-left to the bottom-right corner of their bounding box. Returns the new element id. Use it on Persona Chat with an agent. It runs in the browser on the website and needs no package install.
How to install
Open the persona-chat.dev website and ask your browser agent to use add_element
Run with an agent
Use the add_element tool on persona-chat.dev with slideId: <string>, type: <string>, x: <number>, y: <number>, w: <number>, h: <number>, rotation: <number>, z: <number>, text: <string>, fontSize: <number>, fontFamily: <string>, fontWeight: <number>, color: <string>, align: <string>, fill: <string>, stroke: <string>, strokeWidth: <number>, src: <string>. Return the structured result and cite the source page.
Input contract
slideIdstringTarget slide id; defaults to the slide open in the editor.
typestring
xnumberSlide units; the canvas is 960 wide x 540 tall, origin at the top-left.
ynumber
wnumber
hnumber
rotationnumberDegrees clockwise.
znumberStacking order; higher renders on top.
textstringText elements only. Use \n for line breaks.
fontSizenumber
fontFamilystringFont stack, or a theme token: 'theme.heading' / 'theme.body'. Prefer tokens.
fontWeightnumber400 normal, 700 bold.
colorstringCSS color (e.g. '#0f172a') or a theme token: 'theme.background', 'theme.surface', 'theme.text', 'theme.accent', 'theme.accentText'. Prefer tokens so the deck restyles when the theme changes.
alignstring
fillstringCSS color (e.g. '#0f172a') or a theme token: 'theme.background', 'theme.surface', 'theme.text', 'theme.accent', 'theme.accentText'. Prefer tokens so the deck restyles when the theme changes.
strokestringCSS color (e.g. '#0f172a') or a theme token: 'theme.background', 'theme.surface', 'theme.text', 'theme.accent', 'theme.accentText'. Prefer tokens so the deck restyles when the theme changes.
strokeWidthnumber
srcstringImage URL, or 'placeholder' for a styled placeholder block.
Verify the live listing at the source before a production call. Fields marked as a starter contract may differ from what the site expects.