new_project
Creates a new MakeCode project, optionally loading a complete TypeScript program and returning compile errors to start or validate micro:bit code.
Instructions
Create a new MakeCode project (the user's other projects are kept in MakeCode's list), optionally with a program. Returns compile errors when code is given.
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": {
"name": "<name>"
},
"name": "new_project"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Complete MakeCode TypeScript program (replaces main.ts) | |
| name | Yes | Project name | |
| view | No | Editor view to show afterwards. Default blocks (falls back to javascript if the code has no block form) |