get_relations
Query related works, characters, staff, episodes, or a person’s production and voice credits by entity type and ID, with optional role filters and pagination.
Instructions
沿作品或人物查询关联列表。source_type="subject" 时 kind 可选 relations(关联作品)/characters(角色与声优)/persons(制作人员Staff)/episodes(章节列表);source_type="person" 时 kind 可选 subjects(参与制作作品)/characters(配音/出演角色)。
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": {
"source_type": "<source_type>",
"source_id": "<source_id>",
"kind": "<kind>"
},
"name": "get_relations"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | 关系列表类型:subject 可选 relations/characters/persons/episodes;person 可选 subjects/characters | |
| limit | No | 每页条数(1-100,默认 30) | |
| offset | No | 分页偏移量,默认 0 | |
| source_id | Yes | 源实体 ID | |
| filter_role | No | 可选,按关系/职位/角色定位过滤(如 "续集"、"主角"、"导演"、"动画制作";kind=episodes 不可用) | |
| source_type | Yes | 源实体类型:subject 或 person | |
| episode_type | No | 仅 source_type=subject 且 kind=episodes 可用:0正片/1SP/2OP/3ED/4预告/5MAD/6其他 | |
| subject_type | No | 仅 source_type=person 时可用:按作品类型筛选 |