PromptHub: publish an inline artifact
prompthub_publish_artifactPublish generated Markdown or HTML text results (up to 256 KiB) to a repository's Artifacts panel so outputs appear alongside the repo.
Instructions
Publish a GENERATED text RESULT (Markdown or HTML, ≤256 KiB) to a repo's Artifacts (产物) panel. This is NOT the prompt itself — for the prompt use create_repo/publish_session; for binary files (image/video/pdf) use prompthub_upload_artifact. The server APPENDS (no de-dup); to REPLACE, prompthub_get_repo + prompthub_delete_artifact the old id first. See prompthub_describe_artifact_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>",
"type": "<type>",
"content": "<content>"
},
"name": "prompthub_publish_artifact"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Repository name. | |
| role | No | Defaults to FINAL. Use INTERMEDIATE only for a workflow node output. | |
| type | Yes | ||
| owner | Yes | Owner handle (must be you). | |
| title | No | ||
| content | Yes | The generated text (Markdown or HTML), ≤256 KiB. | |
| filePath | No | PREFER OMITTING. Omit = repo-level artifact, visible on every file page (recommended). Only set to an EXISTING repo file path (from prompthub_get_repo's files[].path); a wrong/non-existent path is accepted but the artifact will NOT show in the UI panel. | |
| targetId | No | Workflow node id required with role=INTERMEDIATE. | |
| targetKind | No | Required with role=INTERMEDIATE. |