71trust / 100

Text Line Compare Execute

by tradepilotusa.com in Other

x402 APIPassing, checked 2 h ago

Compare two texts using deterministic longest-common-subsequence line matching. Returns unchanged, removed and added lines. Preserves whitespace within lines; normalizes CRLF/CR to LF. Maximum 200 lines and 20,000 characters per text; not a semantic comparison.

POST https://www.tradepilotusa.com/api/agent-commerce/v1/services/text_line_compare/execute

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
934 ms typical, 1.2 s slowest 5%
Last check
2 h ago
Next check
any minute now

How to call it

# bash or zsh: see the payment challenge (nothing is charged)
curl -g -i -X POST 'https://www.tradepilotusa.com/api/agent-commerce/v1/services/text_line_compare/execute' \
  -H 'content-type: application/json' \
  --data-raw '{"after":"First\nNew\nLast","before":"First\nOld\nLast"}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fwww.tradepilotusa.com%2Fapi%2Fagent-commerce%2Fv1%2Fservices%2Ftext_line_compare%2Fexecute
const res = await pay("https://www.tradepilotusa.com/api/agent-commerce/v1/services/text_line_compare/execute", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: "{\"after\":\"First\\nNew\\nLast\",\"before\":\"First\\nOld\\nLast\"}",
});
console.log(await res.json());

Example input

{
  "after": "First\nNew\nLast",
  "before": "First\nOld\nLast"
}

Example output

{
  "provenance": {
    "execution": "deterministic_local",
    "model_used": false,
    "network_request_performed": false
  },
  "request_id": "example_text_line_compare",
  "result": {
    "added_lines": 1,
    "line_endings_normalized": true,
    "operations": [
      {
        "kind": "equal",
        "text": "First"
      },
      {
        "kind": "delete",
        "text": "Old"
      },
      {
        "kind": "insert",
        "text": "New"
      },
      {
        "kind": "equal",
        "text": "Last"
      }
    ],
    "removed_lines": 1
  },
  "utility": "text_line_compare"
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
2 h agoPassed402644 ms$0.01
6 h agoPassed402694 ms$0.01
9 h agoPassed402771 ms$0.01
13 h agoPassed402675 ms$0.01
17 h agoPassed4021.2 s$0.01
21 h agoPassed4021.1 s$0.01
24 h agoPassed402934 ms$0.01
28 h agoPassed402679 ms$0.01
31 h agoPassed4021.0 s$0.01
35 h agoPassed402711 ms$0.01
39 h agoPassed4021.1 s$0.01
42 h agoPassed402995 ms$0.01
46 h agoPassed4021.0 s$0.01
2 days agoPassed402956 ms$0.01
2 days agoPassed4021.2 s$0.01