{"uid":"cap_0Ygqz35ULlxjjOckDmGY8","slug":"shebang-line-regex-extractor-61aef6ea","name":"Shebang Line Regex Extractor","description":"Call when an agent needs shebang lines extracted from text, capped at 20 matches. An empty match list is billed. No network. Exact $0.005 USDC. Prefer unpaid POST /v1/sandbox/regex-shebang first.","url":"https://agentshelf.syntexa.ch/v1/regex-shebang?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","examples":["#!/bin/sh"],"maxLength":100000,"minLength":1,"description":"Input for this SKU. The route description says whether it is plain text, a URL, base64 bytes, or an already-encoded token."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_O1HeHx-EAdi_3NZyLwPT5","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts shebang lines (e.g. #!/usr/bin/env python3) from input text using regex, returning up to 20 matches","exampleAgentPrompt":"Can you extract all shebang lines from this script text? Here's the content: '#!/usr/bin/env python3\nprint(\"hello\")\n#!/bin/bash\necho done'","exampleUseCases":[{"title":"Detect interpreters in uploaded scripts","prompt":"I've got a batch of script files concatenated into one big text block — can you pull out every shebang line so I know which interpreters they rely on?"},{"title":"Audit polyglot source code","prompt":"Here's the raw content of our monorepo's main entry files all concatenated together — extract any shebang lines so we can audit which runtimes are in use."},{"title":"Validate script headers in CI pipeline","prompt":"Check this CI artifact text and pull out all the shebang lines — I need to confirm every script starts with the right interpreter path before we deploy."}],"resultDescription":"Returns a list of up to 20 shebang line matches (strings starting with #!) found in the input text. An empty match list is returned (and billed) when no shebangs are present. No network calls are made during processing.","failureModes":["Empty match list returned (still billed) if no shebang lines are present in input","Text exceeding 100,000 characters will be rejected","Empty or missing text field returns validation error","Payment of exactly $0.005 USDC required; missing or incorrect payment results in 402 response"],"whenToPreferThis":"Use this endpoint when you need fast, deterministic regex-based extraction of shebang lines from text without any LLM involvement or network calls. Prefer the free POST /v1/sandbox/regex-shebang endpoint first for testing. Choose this over LLM-based extraction when you need exact regex matching, predictable cost ($0.005 USDC flat), and speed. Best for programmatic pipelines processing scripts, source code files, or shell artifacts.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T01:35:28.286Z","isFirstParty":false,"canonicalSlug":"shebang-line-regex-extractor-61aef6ea"}