write visual program draft
native.write_visual_program_draftSave a complete bounded graph or TSX scene source checkpoint. Read the visual programs operating contract before authoring. Failed compilation preserves this source and the last usable revision.
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": {
"work_id": "<work_id>",
"arguments": "<arguments>",
"expected_catalog_version": "<expected_catalog_version>",
"read_skills": "<read_skills>",
"request_key": "<request_key>"
},
"name": "native.write_visual_program_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| work_id | Yes | ||
| arguments | Yes | ||
| read_skills | Yes | Exact required native skills and their dependencies, copied from the accepted session bootstrap's skills array. Include only entries in that array. General mcp.* guides and native.{studio}.instructions are guidance, not native skill proofs. | |
| request_key | Yes | ||
| publication_proposal_id | No | For native Social scheduling, the exact server-approved publication proposal. This identifier cannot confer approval by itself. | |
| expected_catalog_version | Yes | For a new session, read a studios/{studio}/native/{pack} child toolset and copy invocation.catalog_version from a native tool descriptor. Do not use the top-level library version. For calls in an existing session, use that session proposal's catalog_version. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||