list_record_files
List files on an account, contact, or deal (object_type opportunity). Paginated with at most 50 files per page and next_cursor; continue whenever it is non-null, including empty pages after bounded scanning. Each call examines at most 1000 candidates in chunks of 100. include_related preserves Files-panel account/contact visibility. Each result includes source_object, folder_id and association_id. Carry association_id into remove_record_files; never print it to the user. Use that actual source_object for reads or an explicitly authorized owning-record unlink. Recursive discovery is bounded to 8 folder levels. No URLs are returned. In AI chat, native file cards provide Open and Download. Do not duplicate them in tables or expose file IDs, handles, or internal references in prose. Distinguish copies by filename, source record, and conversation context instead.
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": {
"object_type": "<object_type>",
"object_id": "<object_id>"
},
"name": "list_record_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| cursor | No | ||
| folder_id | No | ||
| object_id | Yes | ||
| recursive | No | ||
| session_id | No | The ID of the task this call belongs to. Leave it out on your first call. On every later call for the same task, send the ID an earlier result gave you, and pass it to any subagent working on that task. | |
| object_type | Yes | ||
| include_related | No |