scan_contract_files
Look through a connected drive and propose contract bundles from FILE AND FOLDER NAMES: which file is the contract, which are annexes, amendments, terminations and handover protocols, and which belong together. Required: root_id — roots[].id from list_file_accounts (the provider drive id works too). Optional: folder_id, query, limit (default 200), min_confidence (default 0.5). Reads names only — no file is downloaded, nothing is written. Every bundle carries the reason it was grouped and a confidence; below 0.5 it is a finding to look at, not a proposal to accept. Use import_contract_group to take one over.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"root_id": "<root_id>"
},
"name": "scan_contract_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of entries to return | |
| query | No | Search text | |
| root_id | Yes | ID of the root folder | |
| folder_id | No | ID of the folder | |
| min_confidence | No | Minimum grouping confidence for proposed bundles, 0..1 (default 0.5) |