Generates a login form for the user to sign in.
()
| 3 | |
| 4 | @tool |
| 5 | def generate_form() -> str: |
| 6 | """ |
| 7 | Return a non-functional sample login-form schema for protocol demonstrations. |
| 8 | This does not authenticate or save data. Never use it to collect real credentials. |
| 9 | """ |
| 10 | components = [ |
| 11 | { |
| 12 | "id": "root", |
| 13 | "component": { |
| 14 | "Card": { |
| 15 | "child": "main-column" |
| 16 | } |
| 17 | } |
| 18 | }, |
| 19 | { |
| 20 | "id": "main-column", |
| 21 | "component": { |
| 22 | "Column": { |
| 23 | "children": { |
| 24 | "explicitList": [ |
| 25 | "header", |
| 26 | "email-field", |
| 27 | "password-field", |
| 28 | "login-btn", |
| 29 | "divider", |
| 30 | "signup-text" |
| 31 | ] |
| 32 | }, |
| 33 | "gap": "medium" |
| 34 | } |
| 35 | } |
| 36 | }, |
| 37 | { |
| 38 | "id": "header", |
| 39 | "component": { |
| 40 | "Column": { |
| 41 | "children": { |
| 42 | "explicitList": [ |
| 43 | "title", |
| 44 | "subtitle" |
| 45 | ] |
| 46 | }, |
| 47 | "alignment": "center" |
| 48 | } |
| 49 | } |
| 50 | }, |
| 51 | { |
| 52 | "id": "title", |
| 53 | "component": { |
| 54 | "Text": { |
| 55 | "text": { |
| 56 | "literalString": "Welcome back" |
| 57 | }, |
| 58 | "usageHint": "h2" |
| 59 | } |
| 60 | } |
| 61 | }, |
| 62 | { |
nothing calls this directly
no outgoing calls
no test coverage detected