newton-direct-query

Query the Newton model via the /v0.5/query API endpoint.

Updated Apr 9, 2026
One-click install
npx skills add https://github.com/archetypeai/newton-earthquake-demo --skill newton-direct-query
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: newton-direct-query
Source: https://github.com/archetypeai/newton-earthquake-demo/tree/main/.claude/skills/newton-direct-query
Command: npx skills add https://github.com/archetypeai/newton-earthquake-demo --skill newton-direct-query

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires requests, and includes scripts (resource) components.

What problem does it solve?

Directly query the Newton model via the /v0.5/query API endpoint to test connectivity, perform quick Q&A, and post-process results from other lenses.

Core Features & Use Cases

  • Simple, authenticated text queries to Newton without lens or session setup.
  • Supports API connectivity checks, on-demand reasoning, and lightweight results for integration tests.
  • Includes Python, JavaScript, and shell-style usage examples to plug into existing tooling.

Quick Start

Send a text query to Newton via the /v0.5/query endpoint using your API key and inspect the response.

Frequently Asked Questions about newton-direct-query

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I directly query the Newton API for a quick Q&A session?

You can directly query the Newton API by sending a POST request to the /v0.5/query endpoint with your API key, query text, system prompt, instruction prompt, and the Newton::c2_4_7b_251215a172f6d7 model specified.

What is the best way to test API connectivity to the Newton model?

Testing Newton API connectivity involves sending a simple authenticated text query to the /v0.5/query endpoint without requiring complex lens or session setup, allowing you to verify connection status quickly.

Does querying the Newton /v0.5/query endpoint require a specific programming language?

Querying the Newton endpoint does not require a specific language; it supports Python, JavaScript, and shell-style usage examples, relying only on the standard requests dependency for integration into existing tooling.

Why does my Newton API request time out before returning a response?

Newton API requests time out because the direct query process enforces a strict 60-second timeout limit for POST payloads sent to the /v0.5/query endpoint to prevent hanging connections.

Can I use direct Newton queries to post-process results from other lenses during debugging?

You can use direct Newton queries to post-process results from other lenses during development, testing, or debugging workflows by sending on-demand reasoning requests to the API endpoint.

What components do I need to include in my POST payload for a Newton direct query?

Your POST payload for a Newton direct query must include the query text, system_prompt, instruction_prompt, and the specific model identifier Newton::c2_4_7b_251215a172f6d7 to process the request successfully.