{"schemaVersion":"toolkit.registry.tool.v1","kind":"toolkit.tool","issuer":"toolkit.fun","id":"6a7abc80e3d2c1c5c1600394","slug":"escape","name":"换行 / 转义转换","version":1,"status":"market","category":"文本","description":"在真实换行与字面 \\n 转义之间互转，顺带处理 \\t、\\\"，粘贴日志或拼 JSON 字符串时常用。","updatedAt":"2026-08-11T06:09:04.192Z","artifact":{"type":"javascript-source","digest":"sha256:a4e83d04526f327376e349c966770eaa9d4f63ce546788fc8da308cfbb7a35f7","sourceHash":"a4e83d04526f327376e349c966770eaa9d4f63ce546788fc8da308cfbb7a35f7","byteLength":557,"sourceUrl":"https://toolkit.fun/api/v1/registry/tools/escape/source","contentAddressedUrl":"https://toolkit.fun/api/v1/registry/artifacts/sha256/a4e83d04526f327376e349c966770eaa9d4f63ce546788fc8da308cfbb7a35f7"},"license":{"expression":"Apache-2.0","text":{"digest":"sha256:643fa11652471c395705eac6a09b77b514e16b66cee111cc88d0908eb8a5251b","url":"https://toolkit.fun/api/v1/registry/attachments/sha256/643fa11652471c395705eac6a09b77b514e16b66cee111cc88d0908eb8a5251b","mediaType":"text/plain; charset=utf-8"}},"copyright":["Copyright 2026 Toolkit"],"provenance":{"schemaVersion":"toolkit.registry.provenance.v1","type":"git","publisher":{"type":"organization","name":"Toolkit","id":"toolkit.fun"},"publishedAt":"2026-08-11T06:09:04.192Z","rightsAttestation":{"statementVersion":"toolkit.publisher-rights.v1","attested":true,"attestedBy":{"type":"organization","name":"Toolkit","id":"toolkit.fun"},"attestedAt":"2026-08-11T06:09:04.192Z","acceptedAt":"2026-08-11T06:09:04.192Z","scope":"official-builtin-preview","statementDigest":"sha256:9528fa0333c98890f0074b2aee34f9c182694d072901de08f3c5a7c51ec02f11","note":"Preview attestation records publisher responsibility; it is not an open-source license grant."},"revision":{"artifactDigest":"sha256:a4e83d04526f327376e349c966770eaa9d4f63ce546788fc8da308cfbb7a35f7","toolId":"6a7abc80e3d2c1c5c1600394","toolVersion":1,"repository":"private://toolkit_new","commit":"local-preview","path":"scripts/builtin_tools.js#escape"}},"thirdParty":{"notice":{"digest":"sha256:4a45a442f4647b1e7ba0f98ad91d35d4ecbbbe79aa52ce42d32e0ddf3493ef3a","url":"https://toolkit.fun/api/v1/registry/attachments/sha256/4a45a442f4647b1e7ba0f98ad91d35d4ecbbbe79aa52ce42d32e0ddf3493ef3a","mediaType":"text/plain; charset=utf-8"},"sbom":{"digest":"sha256:01a46d923c57058570798dc2c43cbe012cfc0b143572036a4c935a0d7556b9c5","url":"https://toolkit.fun/api/v1/registry/attachments/sha256/01a46d923c57058570798dc2c43cbe012cfc0b143572036a4c935a0d7556b9c5","mediaType":"application/spdx+json; charset=utf-8"}},"runtime":{"engine":"node_vm","sandbox":{"timeoutMs":2000,"memMb":128,"net":false,"ai":false}},"inputSchema":{"type":"object","properties":{"input":{"type":"string","description":"工具输入"},"mode":{"type":"string","description":"方向","enum":["auto","转义→真实","真实→转义"]}},"required":["input"]},"endpoints":{"rest":"https://toolkit.fun/api/v1/t/escape","mcp":"https://toolkit.fun/api/mcp","manifest":"https://toolkit.fun/api/v1/registry/tools/escape/manifest","lockfile":"https://toolkit.fun/api/v1/registry/lockfile?tools=escape"},"digest":"sha256:f36d8bb6c1251540f4512ec8ceb20ef63ecaa6bda8a71ef761ccf6b33caad1c9","signature":{"alg":"EdDSA","keyId":"global-production","createdAt":"2026-09-22T16:01:02.699Z","payloadDigest":"sha256:f36d8bb6c1251540f4512ec8ceb20ef63ecaa6bda8a71ef761ccf6b33caad1c9","value":"ed25519:xq5os1vqYZgJTT2QyBkFtPOVKcwApvBb-m3lYgzfjFzn4z5xtHT0fTvKGNV-MTaOgWf-g52iqw9iHFU9gFSBCA"}}