81trust / 100
Dev Diff
by AgentTools in Onchain & crypto
x402 APIPassing, checked 4 h ago
Compare two texts line by line using an LCS diff: exact additions, removals and context — in unified-diff style. Deterministic, unlike asking a model to 'find the differences'. Use this when an agent needs to exact line-level diff with unified-style output.
GET https://agenttools-hub.vercel.app/api/v1/dev/diff
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 145 ms typical, 145 ms slowest 5%
- Last check
- 4 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X GET "https://agenttools-hub.vercel.app/api/v1/dev/diff?a=price%3A+100%0Aquantity%3A+2%0Atotal%3A+200&b=price%3A+100%0Aquantity%3A+3%0Atotal%3A+300&context=1"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%2Fagenttools-hub.vercel.app%2Fapi%2Fv1%2Fdev%2Fdiff
const res = await pay("https://agenttools-hub.vercel.app/api/v1/dev/diff?a=price%3A+100%0Aquantity%3A+2%0Atotal%3A+200&b=price%3A+100%0Aquantity%3A+3%0Atotal%3A+300&context=1");
console.log(await res.json());Example input
{
"a": "price: 100\nquantity: 2\ntotal: 200",
"b": "price: 100\nquantity: 3\ntotal: 300",
"context": 1
}Example output
{
"result": {
"answer": "+2 / −2 lines",
"answerLabel": "Diff result",
"artifacts": {
"diff": " price: 100\n-quantity: 2\n-total: 200\n+quantity: 3\n+total: 300"
},
"details": [
{
"label": "Lines in A",
"value": "3"
},
{
"label": "Lines in B",
"value": "3"
},
{
"label": "Added",
"value": "2"
},
{
"label": "Removed",
"value": "2"
}
],
"steps": [
"Split both inputs into lines",
"Longest-common-subsequence alignment",
"Emit changed hunks with 1 context lines"
],
"value": 4
},
"tool": "diff"
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 4 h ago | Passed | 402 | 145 ms | $0.005 |