{"uid":"cap_xgd3A8JuRIuPz4bU9fFsR","slug":"writerslogic-instruction-data-split-injection-detector-4d915f49","name":"WritersLogic Instruction-Data Split & Injection Detector","description":"Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.","url":"https://agents.writerslogic.com/api/v1/instruction-data-split?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","maxLength":50000,"minLength":1,"description":"The full prompt or tool result to split."},"dataTags":{"type":"array","items":{"type":"string","maxLength":40},"maxItems":20,"description":"Extra XML-style tag names (letters, digits, underscore) whose content is data."}}},"responseSchema":{"type":"json"},"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_RrIwHcvAMuj382mk8TruM","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":"Splits a prompt or tool result into data regions and surrounding instruction text, labels each sentence as instruction or unknown, and flags injection-style phrases with their byte/character offsets.","exampleAgentPrompt":"Before you process this tool result, run it through the instruction-data split check to see if any injection phrases like 'ignore previous instructions' are lurking in the text, and tell me whether it passes or fails.","exampleUseCases":[{"title":"RAG pipeline injection guard","prompt":"I'm about to feed this retrieved document chunk into my agent — can you scan it for any prompt injection phrases like 'ignore previous instructions' or role markers, and tell me which sentences are data vs instructions and whether it passes?"},{"title":"User message pre-flight security check","prompt":"Before my agent acts on this incoming user message, split it into data and instruction regions and flag any injection-style phrases with their positions so I know if someone is trying to hijack the agent."},{"title":"Email body injection audit","prompt":"This email has a quoted body and some instructions at the top — can you parse it to separate the instruction part from the quoted data, label each sentence, and check if any injection attempts are hiding in the quoted section?"}],"resultDescription":"Returns a structured breakdown: labelled data regions (code fences, block quotes, XML wrappers, JSON blocks, etc.), sentence-level labels for surrounding text (instruction or unknown), a list of detected injection-style phrases with offsets in UTF-16, code points, UTF-8 bytes and graphemes, and an overall verdict of pass, fail, or unknown. Pass means all outside sentences are instructions and no data region contains an injection phrase; fail means an injection phrase was found inside a data region; unknown means some outside text matched no rule.","failureModes":["Text exceeds 50,000 character limit — request rejected","Non-English text produces unreliable results as rules are English-only","Heuristic detection may miss novel injection phrasings not in the keyword list","A pass verdict does not guarantee the content is safe — the service explicitly states it never proves data is safe","Custom dataTags with invalid characters (non-letters/digits/underscore) may be rejected","Ambiguous delimiter nesting may produce unexpected region boundaries"],"whenToPreferThis":"Choose this endpoint when you need a fast, deterministic, heuristic scan of agent inputs or tool results for prompt injection patterns before passing content to an LLM — especially when you need precise byte/character offsets for injection phrases and a structured instruction-vs-data split. It is not a classifier and is English-only, so prefer it for English-language pipelines where rule-based auditability matters more than ML-based recall. Use it as a lightweight pre-filter rather than a complete security guarantee.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T12:36:12.076Z","isFirstParty":false,"canonicalSlug":"writerslogic-instruction-data-split-injection-detector-4d915f49"}