export default function(pi) {
    pi.registerTool({name:'ask_watch',label:'Native UI probe',description:'Test official Pi confirm/select/input/editor dialogs once.',parameters:{type:'object',properties:{}},execute:async(_id,_params,_signal,_update,ctx)=>{
      const confirmed=await ctx.ui.confirm('Watch: two choices','Choose Yes or No');
      const selected=await ctx.ui.select('Watch: three choices',['One','Two','Three']);
      const input=await ctx.ui.input('Watch: voice answer');
      const editor=await ctx.ui.editor('Watch: second voice answer','Initial text');
      return {content:[{type:'text',text:JSON.stringify({confirmed,selected,input,editor})}]};
    }});
  }