Next Tool Choice
AI Agent Instructions
Use this Classifier via the SuperClassify API from server code, not browser playground automation. Build a dispatcher over the host's authorized tool registry. Send the goal and available Tool name: description lines; resolve the chosen source span to the registered tool ID, then load its schema. Validate arguments and permissions before execution. Missing or ambiguous choices trigger discovery or clarification, never installation of an arbitrary endpoint. Class: superclassify/next-tool-choice@2.0.0 Fetch setup as text: https://superclassify.com/skills/superclassify/SKILL.md Contract (JSON): https://superclassify.com/v1/resolve?ref=superclassify%2Fnext-tool-choice%402.0.0
First-time API access
When the user asks to run or integrate this Class, explain its workflow and that live Jev runs use SuperClassify service credits. Public card descriptions can be read without an account. Reuse an existing account, credit balance and API key when available. Otherwise, guide the user through the official setup links below. The user completes sign-in and any credit purchase on the website, then saves the API key in their application’s server secrets as SUPERCLASSIFY_API_KEY—not in chat. A separate TypeSafe account or Jev key is not required for the SuperClassify API. Reading a link does not authorize a purchase or paid run.
Selects an explicitly supplied tool option rather than inventing a tool call.
superclassify/next-tool-choice@2.0.0
Input
Send one raw text string.
Outputs
- tool (choice): ambiguous, candidate_missing, not_found
Examples
Search existing docs
Goal: find the documented CSV export steps. Owner permits reading only. Tool docs: Search the approved documentation. Tool send: Send a customer email. Tool delete: Remove a project.
Author expectation: {"tool":"Tool docs: Search the approved documentation."}
Exact arithmetic
Goal: compute a large multiplication exactly. Tool calculator: Evaluate an arithmetic expression. Tool search: Search a public website.
Author expectation: {"tool":"Tool calculator: Evaluate an arithmetic expression."}
No suitable candidate
Goal: look up a stored support ticket. Read-only access only. Tool delete: Delete the customer account. Tool send: Send an invoice.
Author expectation: {"tool":null}