api_docs
ChatGPTReturn the API reference for the ctx object used in execute.
By Motive
The plugin enables Motive dealer customers to manage their website directly inside of ChatGPT.
ctx. Code must define: async def run(ctx): ... No imports. Use ctx.* methods, asyncio, and builtins. Call api_docs first to see available ctx methods. Change sets group audits for one agent prompt/action across multiple execute calls: - Read-only runs never create a change set. - The first mutating run in a prompt opens a change set (or reuse one by passing change_set_id from a previous execute result). - Pass that change_set_id into later execute calls in the same prompt so all writes share one change set. The id must belong to the current user or execute raises. - commit is a short summary; required when this run mutates data. Distinct commits are appended on the change set; identical ones are ignored. Returns JSON with change_set_id first: {"change_set_id": <int|null>, "result": <run return value>}. If the docs are wrong or missing, or a ctx.* call breaks unexpectedly, call report_issue` so it gets fixed. Timeout: 120 seconds.api_docs is missing or wrong about how to use a ctx.* method, a ctx.*` call fails unexpectedly, a response shape doesn't match the docs, or anything else gets in the way of completing a task. category: one of "missing_doc", "broken_endpoint", "incorrect_data", "other" message: what happened, what you expected, what you got context: optional extra detail (method name, dealer_id, code snippet, etc.)Click any prompt to copy it.