add_blueprint
ChatGPTAdds a blueprint to the user's Leapter project. Input: project_id and veritas (one Veritas document with one function). Leapter stores the blueprint when it parses; the result lists its findings, and update_blueprint replaces the source to fix them. The blueprint may call a blueprint that the project does not have yet: that call is a finding until the called blueprint is added. Shows no card. show_project shows the project in a card. If the user saved the project to Leapter, the result is PROJECT_SAVED.
create_project
ChatGPTCreates the user's Leapter project with its first blueprint. Input: title (the project name) and veritas (one Veritas document with one function; the language reference is in get_veritas_guide). Leapter stores the blueprint when it parses; the result has the project_id and the findings. Shows no card. Each user has one project. When the user has one that is not saved to Leapter, the result is PROJECT_LIMIT_REACHED with its project_id, and nothing changes. With replace: true, that project is deleted and the new one takes its place. When the existing project is already saved to the user's Leapter account, the new project replaces the chat copy, and the saved Leapter project does not change.
delete_blueprint
ChatGPTDeletes a blueprint of the user's Leapter project. Input: project_id and label. It deletes the blueprint also when other blueprints call it; update_blueprint changes those blueprints. Shows no card. show_project shows the project in a card. If the user saved the project to Leapter, the result is PROJECT_SAVED.
delete_types
ChatGPTDeletes the types document of the user's Leapter project. Input: project_id. Shows no card. show_project shows the project in a card. If the user saved the project to Leapter, the result is PROJECT_SAVED.
get_card_save_state
ChatGPTReturns whether the user's Leapter project is saved to their Leapter account. Only the card calls this tool.
get_project
ChatGPTReturns the user's Leapter project: its title, each blueprint (label, Veritas source, and public when the user runs it directly) and the types document. Input: project_id. The result has the current source of each document, which update_blueprint and update_types replace whole. Shows no card.
get_veritas_guide
ChatGPTReturns the Leapter Veritas language guide, which a blueprint is written from: the Veritas that Leapter accepts, and the workflow of the Leapter tools. Input: topic (optional). Shows no card. Topics: overview (the default: workflow, projects and calls, types, what the run engine refuses, the card, syntax primer, full example), functions (built-in functions), spec (full language reference).
record_card_run
ChatGPTRecords a run of the blueprint in the card. Only the card calls this tool.
run_blueprint
ChatGPTRuns a blueprint of the user's Leapter project with input values and returns its outputs. Input: project_id, blueprint (the label of the blueprint to run) and input (the user's values for its inputs). Shows no card. The outputs are the answer that the blueprint computes.
save_project
ChatGPTCreates the link that saves the user's Leapter project to their Leapter account. Input: project_id. Shows no card. The link opens Leapter, which signs the user in or up, imports the project and opens it. When the project is already saved, the link opens the saved project. The card's "Save to Leapter" button uses the same tool.
show_project
ChatGPTShows the user's Leapter project in a card. It is the only tool that shows a card. The card is where the user sees the finished project of a change request. Input: project_id; blueprint, the label of the blueprint the card opens on (default: the first public blueprint, else the first); and input, values for that blueprint, so the card opens with a run. The result has the outputs of that run, exactly as the blueprint computes them. run_blueprint answers questions about values, and save_project creates the link that saves the finished project to the user's Leapter account.
update_blueprint
ChatGPTReplaces a blueprint of the user's Leapter project with new Veritas source. Input: project_id, label (the blueprint to replace) and veritas (the whole new document, one function). get_project returns the current source. A new //* title in the source renames the blueprint. Leapter stores the source when it parses; the result lists its findings. Shows no card. show_project shows the project in a card. If the user saved the project to Leapter, the result is PROJECT_SAVED.
update_types
ChatGPTWrites the types document of the user's Leapter project: the define declarations its blueprints use. Input: project_id and types (the whole document). It replaces the stored types document; get_project returns the current one. Leapter stores it when it parses; the result lists its findings. Shows no card. show_project shows the project in a card. If the user saved the project to Leapter, the result is PROJECT_SAVED.