add_code_block
Insert code snippets into Apple Keynote slides by specifying slide number and code content, with optional positioning, font, and color customization.
Instructions
Add a code block to a slide
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"slide_number": "<slide_number>",
"code": "<code>"
},
"name": "add_code_block"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slide_number | Yes | Slide number | |
| code | Yes | Code content | |
| x | No | X coordinate in pixels (optional). Suggested for code: 100-200 | |
| y | No | Y coordinate in pixels (optional). Suggested for code: 250-350 | |
| font_size | No | Font size (optional, default 14) | |
| font_name | No | Font name (optional, default Monaco) | |
| color | No | Text color as 'r,g,b' with values 0-65535 (optional, e.g. '65535,65535,65535' for white) |