v2.6.2
This commit is contained in:
+3
-3
@@ -173,7 +173,7 @@ async function generateWithPython(spec: PresentationSpec, workspacePath: string)
|
||||
const downloadLink = result.download_url || '';
|
||||
let stdout = result.stdout || '';
|
||||
if (!stdout && downloadLink) {
|
||||
stdout = `Presentation created: [${result.filename}](${downloadLink}) (${result.slides} slides)`;
|
||||
stdout = `Presentation created: ${result.filename} | download_url: ${downloadLink} | slides: ${result.slides}`;
|
||||
}
|
||||
|
||||
return {
|
||||
@@ -538,7 +538,7 @@ interface PresentationSpec {
|
||||
|
||||
export const pptxTool: import('./registry.js').Tool = {
|
||||
name: 'create_presentation',
|
||||
description: 'Generate a PowerPoint (.pptx) file with slides. Use image_search on slides to auto-find images by keyword (e.g. "golden retriever"). Use image_url for direct URLs. For very long presentations (10+ slides), consider splitting across multiple calls using edit_presentation. NEVER write Python scripts to create PPTX. Missing images become light-gray placeholders.',
|
||||
description: 'Generate a PowerPoint (.pptx) file with slides. Use image_search on slides to auto-find images by keyword (e.g. "golden retriever"). Use image_url for direct URLs. Put ALL slides in ONE call — never split across multiple calls. NEVER write Python scripts to create PPTX. Missing images become light-gray placeholders.',
|
||||
schema: {
|
||||
spec: 'JSON object: { filename, title, template, theme, font_sizes, slides: [{ type, title, subtitle, bullets, body, content, font_size, image_path, image_url, image_search, background, template }] }',
|
||||
},
|
||||
@@ -676,7 +676,7 @@ export const pptxTool: import('./registry.js').Tool = {
|
||||
|
||||
export const editPptxTool: import('./registry.js').Tool = {
|
||||
name: 'edit_presentation',
|
||||
description: 'Append slides to an existing .pptx file. Provide the path and new slides. Use image_search to auto-find images. For very long additions (10+ slides), consider splitting across multiple calls.',
|
||||
description: 'Append slides to an existing .pptx file. Provide the path and new slides to add. Use image_search to auto-find images. Do NOT use this to split a single presentation — use create_presentation for all slides at once.',
|
||||
schema: {
|
||||
path: 'Path to existing .pptx file (relative to workspace or absolute)',
|
||||
spec: 'JSON object: { slides: [{ type, title, subtitle, bullets, body, content, font_size, image_path, image_url, image_search, background, template }] }',
|
||||
|
||||
+3
-1
@@ -144,7 +144,9 @@ export const pubmedSearchTool = {
|
||||
` Title: ${r.title}`,
|
||||
` Authors: ${r.authors || '(unknown)'}`,
|
||||
` Journal: ${r.journal} (${r.year})`,
|
||||
r.doi ? ` DOI: ${r.doi}` : '',
|
||||
r.doi ? ` DOI: https://doi.org/${r.doi}` : '',
|
||||
` PubMed: https://pubmed.ncbi.nlm.nih.gov/${r.pmid}/`,
|
||||
r.pmcid ? ` Full text (PMC): https://www.ncbi.nlm.nih.gov/pmc/articles/${r.pmcid}/` : '',
|
||||
r.pub_types ? ` Type: ${r.pub_types}` : '',
|
||||
].filter(Boolean).join('\n')),
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user