Waafir
Connect AI Tools

waafir-redact reference

The waafir-redact server exposes Waafir's text-mode redaction to a connected AI client. It is the programmatic, text-in / text-out counterpart of the in-product AI Redaction feature: where the product feature redacts whole files with a review step, this tool redacts a block of text inline and returns the result immediately.

This server is positioned as experimental — the surface may change.

Connection: https://app.waafir.io/api/mcp/waafir-redact — see Setup. Requires a read-scope (or higher) PAT.

redact_text

Redact PII from a block of text. The text is processed by your organization's redaction agent, and the tool returns the redacted text together with the list of entities it identified. Optionally narrow the result to specific entity types.

Inputs

FieldTypeRequiredDescription
textstringyesThe text to redact (must be non-empty).
typesstring[]noRestrict the returned entities to these PII types. Omit to return all detected entities.

Output

{ redacted_text, entities }
  • redacted_text — the input text with sensitive spans blacked out.
  • entities — the list of identified PII entities (type and the matched span), so a client can see what was removed.

The redaction runs against your organization's own redaction configuration, so results reflect the same agent the product uses. As with everything on this surface, the call acts as the token's owner and is scoped to that organization.