phabricator_file_upload
Upload a file to Phabricator from base64 data, returning a PHID that resolves to the file ID needed for Remarkup {F} embeds.
Instructions
Upload a file to Phabricator. Returns a file PHID that can be used with phabricator_file_info to get the file ID for embedding in Remarkup via {F}.
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": {
"data_base64": "<data_base64>"
},
"name": "phabricator_file_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Filename with extension (e.g. "screenshot.png") | |
| canCDN | No | Whether the file can be served over CDN (for public assets) | |
| viewPolicy | No | File visibility policy (e.g., "public", "users", or a custom policy PHID) | |
| data_base64 | Yes | Base64-encoded file content |