Extract Fact Graph
extract_fact_graphConvert legal documents into a structured fact graph with nodes and edges representing facts and dependencies, enabling impact analysis of changes.
Instructions
【いつ使う】法律文書テキストを初めてグラフ化するときのみ呼ぶ。同一文書に対して2回目以降は不要(内部でLLMを呼ぶため高コスト)。 【入力】text: 契約書・法律文書・事実関係の記述(最大50,000文字) 【出力】FactGraph: { nodes: FactNode[], edges: Edge[] }。各ノードはid/type/text/confidenceを持ち、競合解釈にはgroup_idが付与される。エッジはfrom/to/typeで依存関係を表す。 【注意】このgraphオブジェクトをそのまま後続の update_fact_classification と analyze_impact に渡すこと。
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": {
"text": "<text>"
},
"name": "extract_fact_graph"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | 構造化対象のテキスト(契約書、法律文書、事実関係の記述など) |