PromptHub: upload a prompt reference
prompthub_upload_referenceUploads a local repo file as a PromptReference input asset (not a generated artifact) bound to a prompt unit; specify target kind and ID for text files, workflow nodes, or conversation turns.
Instructions
Upload a local file as a PromptReference input asset, bound to a prompt unit. This is NOT a generated artifact. Set filePath to an existing repo file path; targetKind is TEXT_FILE, WORKFLOW_NODE, or CONVERSATION_TURN. targetId is required for node/turn targets. See prompthub_describe_reference_format.
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": {
"owner": "<owner>",
"name": "<name>",
"file": "<file>",
"filePath": "<filePath>",
"targetKind": "<targetKind>"
},
"name": "prompthub_upload_reference"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Path to a local file. | |
| kind | No | Defaults from the file extension. | |
| name | Yes | ||
| owner | Yes | ||
| title | No | ||
| filePath | Yes | Existing repo file path from prompthub_get_repo. | |
| targetId | No | Required for WORKFLOW_NODE and CONVERSATION_TURN. | |
| targetKind | Yes |