{"uid":"cap_dJ9CLuijzD2V6JZqkoY-c","slug":"x402-toolbox-github-file-content-ad542dc3","name":"x402-toolbox GitHub File Content","description":"309 deterministic pay-per-call tools for AI agents over x402 (USDC, Base). No signup, no API key: the payment is the identity.","url":"https://x402-toolbox.shablony-pro.workers.dev/dev/github-file-content?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"schema":{"type":"string"}}},"responseSchema":{"type":"json","example":{"ok":true,"paid":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_EMXtwjSa1Q_rg1sTosbH5","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches the raw content of a file from a GitHub repository, paid per-call via x402 USDC micropayment on Base.","exampleAgentPrompt":"Can you grab the contents of the file at path 'src/index.js' from the GitHub repo 'octocat/Hello-World'?","exampleUseCases":[{"title":"Read config file from repo","prompt":"Fetch the contents of the '.github/workflows/deploy.yml' file from the 'myorg/myapp' GitHub repository so I can review the CI pipeline setup."},{"title":"Pull README for documentation","prompt":"Get me the raw content of the README.md file from the 'openai/openai-python' GitHub repository."},{"title":"Retrieve source code for analysis","prompt":"Grab the contents of 'lib/auth.py' from the 'mycompany/backend' GitHub repo so I can check the authentication logic."}],"resultDescription":"Returns a JSON object with ok and paid flags, plus the raw content of the requested GitHub file. The agent receives the file's text content as it appears in the repository, suitable for reading, parsing, or further processing.","failureModes":["File not found in repository — returns error if path is incorrect or file does not exist","Repository is private and access is denied — no API key means public repos only","Malformed schema parameter — returns error if input is not valid","Payment failure on x402 — call not executed if USDC transaction fails","Rate limiting or upstream GitHub API unavailability — transient errors possible"],"whenToPreferThis":"Choose this endpoint when you need to retrieve a specific file from a GitHub repository without managing API keys or OAuth tokens — the x402 micropayment is the only authentication required. Ideal for AI agents that need to read source code, config files, or documentation from public GitHub repos on demand.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T06:48:31.521Z","isFirstParty":false,"canonicalSlug":"x402-toolbox-github-file-content-ad542dc3"}