EXTRACT_CONTRACT_TERMS
Automated Legal Document Due Diligence. Analyzes legal documents (PDF/DOCX) to flag specific risky term clauses (e.g. 'Change of Control', 'Termination').
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
input_path | string | yes | Absolute path to the legal contract document (PDF/DOCX). |
target_terms | array | yes | List of specific legal clauses to seek (e.g. ['Change of Control', 'Indemnification']). |
output_path | string | yes | Absolute path to save the resulting Markdown (.md) summary. |
How to use it
You normally trigger this by describing what you want in chat — the agent selects EXTRACT_CONTRACT_TERMS automatically. For example:
Try saying
“use analyst tools to extract …”
In a workflow
As a step in a multi-step workflow DAG:
json
{
"id": "s1",
"agent": "analyst_tools",
"action": "EXTRACT_CONTRACT_TERMS",
"args": {
"input_path": "/Users/me/Documents/file.txt",
"target_terms": [],
"output_path": "/Users/me/Documents/file.txt"
},
"depends_on": [],
"outputs": []
}Direct call
For scripting, call it directly via POST /execute_tool. Every tool returns { success, message, data }.
bash
curl -X POST http://127.0.0.1:8000/execute_tool \
-H "Content-Type: application/json" \
-d '{"tool_name":"EXTRACT_CONTRACT_TERMS","args":{"input_path":"/Users/me/Documents/file.txt","target_terms":[],"output_path":"/Users/me/Documents/file.txt"}}'Part of the analyst_tools plugin. Browse the full Plugin & Tool Catalog or the relevant feature guide.