const got = await mn.api('/notes/batch-get', { method: 'POST', body: { noteIds: [noteid] } });
const before = String(got.items[0].title || '').slice(0, 32);
await mn.api('/notes/' + noteid + '/title', {
method: 'POST',
body: { text: 'photosynthesis', expectedPrefix: before, confirm: true }
});