# WritersLogic Instruction-Data Split & Injection Detector

> WritersLogic Instruction-Data Split & Injection Detector is a paid API for AI agents from agents.writerslogic.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-19).

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.

## Facts

- Endpoint: POST https://agents.writerslogic.com/api/v1/instruction-data-split?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/writerslogic-instruction-data-split-injection-detector-4d915f49
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xgd3A8JuRIuPz4bU9fFsR

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability writerslogic-instruction-data-split-injection-detector-4d915f49 -d '<json body>'
```

Example prompt: 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.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/writerslogic-instruction-data-split-injection-detector-4d915f49/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.writerslogic.com](https://www.zero.xyz/host/agents.writerslogic.com/llms.txt)
