asm_get_assets
Retrieve a company's external assets with filters for type, status, asset, software, and version, using cursor pagination to resume scans or fetch changes.
Instructions
Assets of a company: POST /api/v2/assets/updated, oldest-first, following the seqUpdate cursor across pages. Filters: type, status, asset, software, version. Returns items with complete, reason and seqUpdate; when complete is false, call again with seq_update to continue. One call stops at max_items, after ~40 s or at 1 MB of output. Without a status filter excluded assets (status 'false') are included — the perimeter is status ['confirmed', 'new']. For totals use asm_assets_summary.
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": {
"company_id": "<company_id>"
},
"name": "asm_get_assets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Asset types; empty = all. Infrastructure = domain, ip, ip_range, ssl. | |
| asset | No | Exact asset values (domain, IP). | |
| fields | No | Return only these fields, e.g. ['asset', 'type', 'status', 'hasIssues', 'ports']. | |
| status | No | Empty = all, including excluded assets ('false'). The company perimeter is ['confirmed', 'new']. | |
| compact | No | Default true: drop heavy and repeated fields (whois/DNS of domains, discovery graph, descriptions, company fields). false returns records as the API sent them. | |
| version | No | Software versions. | |
| software | No | Software names, e.g. nginx. | |
| max_items | No | Integer, 1-5000, default 500: stop after this many assets. | |
| page_size | No | Records per API request, at most 2000. A page that times out is retried at half the size automatically. | |
| company_id | Yes | Company id from asm_list_companies (field id), e.g. 3f2b6c1e-0000-4a5b-8c9d-0123456789ab. | |
| seq_update | No | Resume cursor: the seqUpdate of a previous answer of this tool with the same filters. Omit to start from the oldest record. Saved after a full walk, it returns only what changed since. |