Synap
v0.1.3Open-model LLM inference for agents.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
chat Chat with a Synap model
Send a chat conversation to a Synap model and get the reply. OpenAI-style messages.
| Parameter | Type | Description |
|---|---|---|
messages * | array | Conversation so far, oldest first. |
max_tokens | integer | Reply length cap (default 2048). |
model | string | Model id from list_models. Omit to use the router (synap-v1) or SYNAP_MODEL. |
temperature | number |
list_models List Synap models
Live list of Synap model ids with capability, context window and per-token price, read from /v1/models.
| Parameter | Type | Description |
|---|---|---|
filter | string | Case-insensitive text to match against id or capability, e.g. 'vision' or 'coder'. |
summarize_url Summarize a web page
Fetch a public web page and summarize it with a Synap model. Page text is treated as data, never as instructions.
| Parameter | Type | Description |
|---|---|---|
url * | string | http(s) URL of the page. |
focus | string | What to focus on, e.g. 'pricing and limits'. |
length | string | Summary length (default medium). |
model | string | Model id from list_models. Omit to use the router (synap-v1) or SYNAP_MODEL. |
review_diff Review a code diff
Code review of a unified diff (git diff output): bugs, security issues and missing edge cases, with severity, location and fix.
| Parameter | Type | Description |
|---|---|---|
diff * | string | Unified diff text, e.g. the output of `git diff`. |
context | string | What the change is meant to do. |
focus | string | Extra attention area, e.g. 'security' or 'concurrency'. |
model | string | Model id from list_models. Omit to use the router (synap-v1) or SYNAP_MODEL. |
extract_json Extract JSON from text
Extract structured data from text into JSON matching a JSON Schema (validated, with one automatic repair attempt).
| Parameter | Type | Description |
|---|---|---|
schema * | JSON Schema object for the output, or a plain-language description of the wanted shape. | |
text * | string | Source text to extract from. |
instructions | string | |
model | string | Model id from list_models. Omit to use the router (synap-v1) or SYNAP_MODEL. |
describe_image Describe an image
Describe or answer a question about an image (screenshot, chart, photo, scanned page) with a Synap vision model.
| Parameter | Type | Description |
|---|---|---|
image * | string | Local file path (png/jpg/gif/webp), http(s) URL, or data: URI. |
detail | string | |
model | string | Vision model id. Omit to use the cheapest vision model listed. |
prompt | string | Question about the image. Default: full description with transcribed text. |