await sly.agents.registerSkill(MY_AGENT_ID, {
id: 'pdf.summarize',
name: 'Summarize a PDF',
description: 'Produces a 5-bullet summary of a PDF document',
input_schema: {
type: 'object',
required: ['pdf_url'],
properties: {
pdf_url: { type: 'string', format: 'uri' },
max_words: { type: 'integer', default: 250 },
},
},
output_schema: {
type: 'object',
properties: { summary: { type: 'string' }, key_points: { type: 'array' } },
},
pricing: { amount: '0.50', currency: 'USDC' },
estimated_duration: 'PT15S',
});