ai_task
Run a Claude-powered text task to summarize, translate, classify against labels, or extract schema-defined JSON fields from provided text.
Instructions
Run a Claude-powered text task on a piece of text: summarize into N sentences (summarize), translate to a target language (translate), classify into your own labels with a confidence score (classify), or extract structured JSON fields per a JSON Schema you provide (extract). Prices: $0.01 (summarize, translate, classify), $0.02 (extract).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | Which text task to run. | |
| text | Yes | The source text (max 8000 chars). | |
| labels | No | classify only: 2-20 possible labels. | |
| schema | No | extract only: a JSON Schema describing the fields to extract. | |
| target_lang | No | translate only: target language name or code (e.g. 'French', 'es'). | |
| max_sentences | No | summarize only: 1-10 (default 3). |