Social Set Pfp
social_set_pfpSet the profile picture for the active Scratch session by uploading a PNG, JPG, or GIF file, after verifying it does not exceed 500x500 pixels to avoid rejection.
Instructions
Set the profile picture of the active session's account.
Scratch caps avatars at 500x500 pixels. An oversized image is rejected with HTTP 200 and an error in the body, so this checks the size before uploading and reads the response rather than assuming success.
SVG is not accepted by Scratch; rasterise it first (for example inkscape logo.svg -w 500 -h 500 -o logo.png).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Path to a .png, .jpg or .gif no larger than 500x500. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||