compare_segments
Analyze two document segments to identify shared themes, unique terms, and similarity scores, helping understand relationships between chapters or sections.
Instructions
Compare two segments to find shared themes, unique terms, and similarity.
Useful for understanding relationships between chapters.
Args: segment_id_a: ID of the first segment to compare. segment_id_b: ID of the second segment to compare. find_bridges: Find intermediate segments that connect the two. max_bridges: Maximum number of bridge segments to return.
Returns: Comparison result with similarity and themes.
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": {
"segment_id_a": "<segment_id_a>",
"segment_id_b": "<segment_id_b>"
},
"name": "compare_segments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| segment_id_a | Yes | ||
| segment_id_b | Yes | ||
| find_bridges | No | ||
| max_bridges | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||