{
  "x402Version": 2,
  "id": 35458,
  "slug": "35458",
  "resource": "https://agentstoolshub.com/api/v1/dev/diff",
  "description": "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.",
  "type": "http",
  "serviceName": "AgentTools",
  "resourceType": "Market Data",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x8a0F2b0a6C82D1c54B16E2e4DEcd18fF0802b0f6",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "5000",
      "amountUsd": 0.005,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "analytics": {},
    "bazaar": {
      "info": {
        "input": {
          "method": "GET",
          "queryParams": {
            "a": "price: 100\nquantity: 2\ntotal: 200",
            "b": "price: 100\nquantity: 3\ntotal: 300",
            "context": 1
          },
          "type": "http"
        },
        "output": {
          "example": {
            "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"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "method": {
                "enum": [
                  "GET"
                ],
                "type": "string"
              },
              "queryParams": {
                "properties": {
                  "a": {
                    "description": "Use \n for line breaks",
                    "type": "string"
                  },
                  "b": {
                    "description": "Changed text",
                    "type": "string"
                  },
                  "context": {
                    "description": "Context lines",
                    "type": "number"
                  }
                },
                "required": [
                  "a",
                  "b"
                ],
                "type": "object"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "dev",
    "crypto-dev",
    "analytics",
    "bazaar"
  ],
  "sourceHost": "agentstoolshub.com",
  "lastUpdated": "2026-10-11T21:59:38.27Z",
  "quality": {
    "calls30d": 2,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-11T21:59:38.12Z"
  },
  "metadata": {
    "serviceName": "AgentTools",
    "extensions": {
      "analytics": {},
      "bazaar": {
        "info": {
          "input": {
            "method": "GET",
            "queryParams": {
              "a": "price: 100\nquantity: 2\ntotal: 200",
              "b": "price: 100\nquantity: 3\ntotal: 300",
              "context": 1
            },
            "type": "http"
          },
          "output": {
            "example": {
              "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"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "method": {
                  "enum": [
                    "GET"
                  ],
                  "type": "string"
                },
                "queryParams": {
                  "properties": {
                    "a": {
                      "description": "Use \n for line breaks",
                      "type": "string"
                    },
                    "b": {
                      "description": "Changed text",
                      "type": "string"
                    },
                    "context": {
                      "description": "Context lines",
                      "type": "number"
                    }
                  },
                  "required": [
                    "a",
                    "b"
                  ],
                  "type": "object"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "agentstoolshub.com",
    "manifest_name": "agentstoolshub.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {},
    "type": "string"
  }
}