Explore a node
exploreExplore one node in a single call, when the user asks about a thing the room holds: the node by its reference, its relations per type and direction with counts, weight sums and the limit strongest partners, and its place in a sequence. Input: ref (required, as get_node takes it: external id, alt id, IRI, exact name or node_id), namespace_id, limit, relation_types and sequence_relation. Replaces search, get_node_stats and query_graph_neighbors for the first look at a node; paths stay with query_graph_paths. sequence comes from sequence_relation or the relations the room card declares, and is null when there is none: nothing is guessed. The bounds of get_node_stats; deterministic, no model call, nothing stored. sequence_relation names a relation type that orders nodes (NEXT_AYAH gives a verse's previous and next); without it the relations the room card declares in sequence_relations are used, and sequence is null when neither names one the node has an edge of. The reference resolves as in get_node. Several nodes on one side give the sibling and every candidate. sequence_direction: forward (the default, unless the room card declares the relation inverse) reads an edge from the earlier node to the later one; inverse reads a preceded-by relation, whose OUT edge is the node before. limit is the name every tool uses for the size of its answer (top_n is its deprecated alias; passing both is SCHEMA_VALIDATION_FAILED). Example: {"ref": "GO:0008150", "namespace_id": "obo-go"}. Added in contract revision 4.6.0. Since contract revision 4.7.0 nothing is guessed: sequence comes from sequence_relation or the card's sequence_relations, sequence_direction reads a preceded-by relation (inverse), candidates lists every node of a side with several, and ref resolves an alt id (resolved_by ALT_ID). Since contract revision 4.9.0 ref also resolves a record's iri property (resolved_by IRI), and limit is the name of top_n (kept as a deprecated alias). The contract revision in force is the one every response repeats in _meta.contract_revision and server_info reports; a revision note (Added in, Since) says when a field or a tool appeared, never which revision is current.
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": {
"ref": "<ref>"
},
"name": "explore"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | External id, alt id, IRI, exact name or node_id. | |
| limit | No | Strongest partners per relation type and direction. | |
| top_n | No | Deprecated since contract revision 4.9.0: pass limit instead (one name for every answer's size); still accepted. | |
| namespace_id | No | Room name; omitted: the default room. | |
| relation_types | No | Count only relations of these types. | |
| sequence_relation | No | Relation type whose edges order nodes; omitted: what the room card declares. | |
| sequence_direction | No | forward: edges run from the earlier node. inverse: a preceded-by relation. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node | Yes | ||
| scanned | Yes | ||
| sequence | Yes | The node's place in a sequence relation (the one asked, else one the room card declares); null when none was named or the node has no edge of it. With several nodes on one side, previous and next are the sibling (sharing the most of the node's parents; on a tie the most specific) or null, and candidates lists them all. | |
| warnings | Yes | Added in contract revision 4.1.0. Set when the node has no edge at all (ISOLATED_NODE with the reason its record gives), so an empty answer reflects missing data rather than the request; empty otherwise. | |
| read_only | Yes | ||
| relations | Yes | By relation type, then direction. | |
| generation | Yes | ||
| properties | Yes | The node's properties as the bundle states them. | |
| external_id | Yes | The id the bundle states for the node; null when the record states none. | |
| resolved_by | Yes | Whether ref was the node's external id, its node_id, or a name it states. | |
| namespace_id | Yes |