upload_and_generate_prompt
Upload an aviation accident report (PDF, DOCX, TXT), parse its content, and generate a prompt using a template for knowledge graph extraction.
Instructions
Upload an aviation accident report (PDF, DOCX, TXT), parse it, and wrap it in a specified prompt template.
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": {
"file_path": "<file_path>"
},
"name": "upload_and_generate_prompt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Path to the document file. | |
| template_name | No | Name of the template in the prompts/ directory (e.g., 'extract_entities'). | extract_entities |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |