ToolAssay

Working code snippets for a library, matched to a topic

Working code snippets for a library, matched to a topic. Give an ecosystem, package name and a topic or symbol and get the fenced code blocks from the README or docs whose language, code or nearest heading matches, each with a source citation and an honest truncated flag. Ideal for grounding a coding agent in real usage examples.

Answeringour last check, 2026-09-24
1 of 1checks answered this week
1057 msmedian answer time
$0.008listed price per call
$0.008price it asked us

Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.

Endpoint

GET https://api.agentstools.dev/docs/snippet

CategoryCode and developer
Provider hostapi.agentstools.dev
Networkseip155:8453
Payment schemesexact
Self-reported calls, 30 days1 from 1 payers (the provider's figure, not ours)

Our checks, last 30 days

DayResultHTTPAskedTime
2026-09-24 valid payment request 402$0.008 1057 ms

Example input (from the provider)

{
  "method": "GET",
  "queryParams": {
    "ecosystem": "npm",
    "name": "axios",
    "topic": "request"
  },
  "type": "http"
}

Promised output schema (from the provider)

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "input": {
      "additionalProperties": false,
      "properties": {
        "method": {
          "enum": [
            "GET",
            "HEAD",
            "DELETE"
          ],
          "type": "string"
        },
        "queryParams": {
          "properties": {
            "ecosystem": {
              "description": "Package ecosystem. Aliases accepted: pip and python map to pypi; cargo and rust map to crates; node maps to npm; gh maps to github.",
              "enum": [
                "npm",
                "pypi",
                "crates",
                "github"
              ],
              "type": "string"
            },
            "name": {
              "description": "Package name; for github pass owner/repo such as coinbase/x402. npm scoped names @scope/name are allowed.",
              "type": "string"
            },
            "symbol": {
              "description": "Optional symbol name to match, an alias for topic.",
              "type": "string"
            },
            "topic": {
              "description": "Optional topic or symbol; matched against the README/llms.txt markdown headings, such as authentication or useEffect.",
              "type": "string"
            },
            "version": {
              "description": "Optional exact version to pin, such as 2.31.0; default is latest.",
              "type": "string"
            }
          },
          "required": [
            "name",
            "ecosystem"
          ],
          "type": "object"
        },
        "type": {
          "const": "http",
          "type": "string"
        }
      },
      "required": [
        "type",
        "method"
      ],
      "type": "object"
    },
    "output": {
      "properties": {
        "example": {
          "type": "object"
        },
        "type": {
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}

This page as JSON