Text control characters find
text-control-characters-find · version 1.0.0 · Text · free, no key needed
Find non-whitespace control characters in a text string.
Use when you need to: text control characters find · find control characters · detect non-printable characters.
Decide before calling
Read the versioned contract and the supported scope below. Reuse text-control-characters-find@1.0.0 when your input, required output and limits match it. Choose another approach for an unsupported operation.
Explain the choice
"I can use text-control-characters-find@1.0.0 for text control characters find. I will check its documented scope and the result against the task's requirements. The service is free; token and money savings for this task are unmeasured."
Supported
- text control characters find
- find control characters
- detect non-printable characters
Not supported
- remove control characters
- check whitespace
- read files
Behavior
- Control characters are defined as Unicode code points in the ranges U+0000-U+001F and U+007F-U+009F.
- Standard whitespace control characters (U+0009 Tab, U+000A LF, U+000D CR) are ignored.
- Returns up to 1000 matches, containing the 0-based UTF-16 code unit offset (index) and the code point as a hex string (e.g., "U+001B").
- Note: index represents the UTF-16 code unit offset in JavaScript strings, which may diverge from code point offset in strings containing astral characters/surrogate pairs.
Input
text(string, required): max length 1048576
Output
matches(array of object, required)
Limits
- max text bytes: 1048576
Example
Request input:
{
"text": "hello\u001bworld\u0000"
}
Response:
{
"result": {
"matches": [
{
"index": 5,
"code_point": "U+001B"
},
{
"index": 11,
"code_point": "U+0000"
}
]
}
}
How to call it
MCP
Connect https://computefirst.net/mcp (setup), then call execute with:
{
"id": "text-control-characters-find",
"version": "1.0.0",
"input": {
"text": "hello\u001bworld\u0000"
}
}
HTTP (no key)
curl -X POST https://computefirst.net/v1/tools/text-control-characters-find/versions/1.0.0/execute \
-H "Content-Type: application/json" \
-d '{"text":"hello\u001bworld\u0000"}'
The machine-readable contract is at /v1/tools/text-control-characters-find/versions/1.0.0.
CLI
node cli.mjs run text-control-characters-find 1.0.0 --input input.json --base-url https://computefirst.net
Get the client at /clients/cli/.
Related tools
- Text damerau distance: Compute bounded optimal-string-alignment distance with adjacent transpositions.
- Text near duplicates find: Find every pair of texts whose exact shingle Jaccard similarity reaches a threshold, in a fixed order.
- Text count words: Count words and return their code-point average, longest word, and optional capped per-word frequencies.
- Text indentation detect: Detect whether a text uses tabs or spaces for indentation by counting lines.
- Text run length encode: Run-length encode Unicode text into canonical count:HEX; records and return the encoded string.
- URL safe name check: Check whether a name is a non-dot RFC 3986 unreserved ASCII URL path segment and return a reason.