scaffold_task
Create a Harbor task directory from a specification, enforce required instruction/verifier/solution fields, copy staged files, and prepare the task for validation.
Instructions
Write a Harbor task directory from the spec you produced. This is the only way to materialise a task, so the spec shape is enforced here rather than in prose: instruction_md is the task text the solving agent sees, verifier_code is the test that writes /logs/verifier/reward.txt, solution_code is the reference solution. Files listed in copy_from_staging are copied into the image and land at the root of the working directory under their own file name. Call validate_task on the result. The task name is prefixed with the org you pass.
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>",
"instruction_md": "<instruction_md>",
"verifier_code": "<verifier_code>"
},
"name": "scaffold_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| org | No | envwiki | |
| name | Yes | ||
| tags | No | ||
| workdir | No | /app | |
| category | No | general | |
| task_dir | No | ||
| target_os | No | linux | |
| base_image | No | ubuntu:24.04 | |
| difficulty | No | medium | |
| description | No | ||
| staging_dir | No | ||
| source_notes | No | ||
| solution_code | No | ||
| verifier_code | Yes | ||
| instruction_md | Yes | ||
| setup_commands | No | ||
| copy_from_staging | No | ||
| solution_language | No | bash | |
| verifier_language | No | bash |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||