Log in to Scratch
scratch_loginAuthenticate with a Scratch account to let the server open, edit, and publish your projects. Credentials default to environment variables if not provided.
Instructions
Authenticate with a scratch.mit.edu account so the server can open your projects from the website and (with your confirmation) save edits back and publish them. Credentials default to the SCRATCH_USER / SCRATCH_PASS environment variables if omitted. The session is kept in memory for this server process only.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "scratch_login"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| password | No | Scratch password. Defaults to $SCRATCH_PASS. | |
| username | No | Scratch username. Defaults to $SCRATCH_USER. |