Agent server API matrix

This page is the operator-facing index of HTTP surfaces on Toolcore servers that matter to assistants and automation. It complements AI agents & LLM integration (URL-manifest pattern) and is separate from About. Machines should still follow GET /agent-tools.json and GET /api/agent/v1/capabilities.

1. Deterministic agent remote API

Same contract as integration.remoteExecution in the manifests: JSON in/out, no generative model—only allowlisted operations. Limits below match lib/agent-api-constants.ts.

OperationMethodPathPurpose
capabilitiesGET/api/agent/v1/capabilitiesList operations, limits, example POST bodies (maxRequests=30/60s per IP; maxInputUtf8Bytes=524288).
executePOST/api/agent/v1/executeRun one allowlisted operation (currently: json-format). Request JSON per capabilities; HTTP 429 when rate-limited.
  • json-formatJSON format (server): Pretty-print or minify JSON using the same strict JSON.parse/JSON.stringify semantics as the JSON formatter page.

2. Machine-readable discovery (not execute)

These return JSON or plain text for building prefilled tool URLs—no user payload transforms on the server.

ResourceMethodPathRole
Full catalog manifestGET/agent-tools.jsonIncludes AIGC tools + integration block.
Non-AIGC manifestGET/mcp-tools.jsonSame shape; AIGC entries omitted.
LLM system promptGET/llm-prompt.txtPlain text; mirrors manifest field.

3. AIGC server routes (/api/ai/*)

Each row is a POST handler paired with a tool under /tools/ai. They call a configured generative API on the server—not offline-only. Request/response shapes are per route (see each app/api/ai/…/route.ts).

SegmentAPI pathTool page
ansible-explainPOST /api/ai/ansible-explain/tools/ai/ansible-explain
bullet-expandPOST /api/ai/bullet-expand/tools/ai/bullet-expand
ci-yaml-explainPOST /api/ai/ci-yaml-explain/tools/ai/ci-yaml-explain
commit-msgPOST /api/ai/commit-msg/tools/ai/commit-msg
curl-http-explainPOST /api/ai/curl-http-explain/tools/ai/curl-http-explain
diff-reviewPOST /api/ai/diff-review/tools/ai/diff-review
docker-compose-explainPOST /api/ai/docker-compose-explain/tools/ai/docker-compose-explain
dockerfile-explainPOST /api/ai/dockerfile-explain/tools/ai/dockerfile-explain
env-explainPOST /api/ai/env-explain/tools/ai/env-explain
grafana-explainPOST /api/ai/grafana-explain/tools/ai/grafana-explain
helm-explainPOST /api/ai/helm-explain/tools/ai/helm-explain
image-altPOST /api/ai/image-alt/tools/ai/image-alt
json-errorPOST /api/ai/json-error/tools/ai/json-error
k8s-yaml-explainPOST /api/ai/k8s-yaml-explain/tools/ai/k8s-yaml-explain
log-summaryPOST /api/ai/log-summary/tools/ai/log-summary
makefile-explainPOST /api/ai/makefile-explain/tools/ai/makefile-explain
nginx-explainPOST /api/ai/nginx-explain/tools/ai/nginx-explain
nl-regexPOST /api/ai/nl-regex/tools/ai/nl-regex
openapi-explainPOST /api/ai/openapi-explain/tools/ai/openapi-explain
pre-commit-explainPOST /api/ai/pre-commit-explain/tools/ai/pre-commit-explain
prometheus-explainPOST /api/ai/prometheus-explain/tools/ai/prometheus-explain
readme-changelogPOST /api/ai/readme-changelog/tools/ai/readme-changelog
regex-explainPOST /api/ai/regex-explain/tools/ai/regex-explain
screenshot-stepsPOST /api/ai/screenshot-steps/tools/ai/screenshot-steps
seo-metaPOST /api/ai/seo-meta/tools/ai/seo-meta
shell-explainPOST /api/ai/shell-explain/tools/ai/shell-explain
sql-explainPOST /api/ai/sql-explain/tools/ai/sql-explain
stack-tracePOST /api/ai/stack-trace/tools/ai/stack-trace
systemd-explainPOST /api/ai/systemd-explain/tools/ai/systemd-explain
tech-translatePOST /api/ai/tech-translate/tools/ai/tech-translate
terraform-explainPOST /api/ai/terraform-explain/tools/ai/terraform-explain
test-ideasPOST /api/ai/test-ideas/tools/ai/test-ideas
tone-rewritePOST /api/ai/tone-rewrite/tools/ai/tone-rewrite

Common use cases

  • Share this page with teammates wiring GPT Actions, MCP HTTP tools, or internal scripts that need a single map of server routes.
  • Start integrations from GET /api/agent/v1/capabilities for deterministic JSON, not from guessing /api paths.

Common mistakes to avoid

  • Assuming every /tools/* page has a matching generic POST API

    Most tools run in the browser. Only rows in sections 1–3 above are server HTTP surfaces relevant to agents; UI-only tools use prefilled URLs instead.

FAQ

Why is this separate from /ai-agents?

/ai-agents explains the URL-manifest and pseudo-MCP pattern for delegating work to the tab. This matrix lists actual server routes (deterministic agent API + AIGC POST endpoints + discovery URLs) in one place.